javax.ejb
Annotation Type Lock


@Target(value={TYPE,METHOD})
@Retention(value=RUNTIME)
public @interface Lock

Declares a concurrency lock for a method of a singleton bean with container-managed concurrency. Lock does not apply to stateful session beans with container-managed concurrency, since stateful session bean instances are always single-threaded.

Since:
EJB 3.1 version.
Author:
Florent Benoit
See Also:
EJB 3.1 specification

Optional Element Summary
 LockType value
           
 

value

public abstract LockType value
Default:
javax.ejb.LockType.WRITE


Copyright © 2007-2012 OW2 Consortium. All Rights Reserved.