Top Description Methods
javax.ejb

public @Interface Lock

extends Annotation
Annotations
@Target:TYPE, METHOD
@Retention:RUNTIME
Imports
java.lang.annotation.Target, .Retention

Declares a concurrency lock for a singleton session bean with container managed concurrency.

This annotation may be specified on the bean class, the business methods of the bean class or both. Specifying the annotation on a business method overrides the value specified at class level, if any.

If this annotation is not used, a value of Lock(WRITE) is assumed.

Since
EJB 3.1

Method Summary

Modifier and TypeMethod and Description
public LockType
Inherited from java.lang.annotation.Annotation:
annotationTypeequalshashCodetoString

Method Detail

valueback to summary
public LockType value()