The following table lists the annotations included in the javax.ejb package:
Annotation name | Functionality |
---|---|
@AccessTimeout | Specify the timeout value of the concurrent access of Singleton Session Bean set by the Container Managed Concurrency. |
@AfterBegin | Specify in a method that is called back immediately after starting the transaction of Stateful Session Bean. |
@AfterCompletion | Specify in a method that is called back after completing the transaction of Stateful Session Bean. |
@ApplicationException | Specify in an exception class that is considered as an application exception. |
@Asynchronous | Specify in a business method that is executed asynchronously. Specify in a class and method of Stateless Session Bean or Singleton Session Bean. |
@BeforeCompletion | Specify in a method that is called back immediately before completing the transaction of Stateful Session Bean. |
@ConcurrencyManagement | Specify the type of the ConcurrencyManagement of Singleton Session Bean. Specify this annotation only in the Singleton Session Bean class. |
@DependsOn | Specify to specify the dependency relation between Singleton Session Beans. Specify this annotation only in Singleton Session Bean class. |
@EJB | Specify the reference to EJB business interface or home interface. |
@EJBs | Specify multiple @EJB. |
@Init | Specify in a method that is called back when create <METHOD>()defined in the home interface of Stateful Session Bean is executed. |
@Local | Specify the local business interface of Enterprise Beans. |
@LocalBean | Specify if Session Bean is specified as No-Interface view. Specify this annotation only in the Session Bean class. |
@LocalHome | Specify in an Enterprise Bean class that supports the invocation using the local home interface, and local component interface. |
@Lock | Specify the method to perform exclusive control when you are accessing business methods of a Singleton Session Bean in which the Container Managed Concurrency is set. |
@PostActivate | Specify in a method that is called back immediately after Stateful Session Bean is activated. |
@PrePassivate | Specify in a method that is called back immediately before Stateful Session Bean is passivated. |
@Remote | Specify the remote business interface of Enterprise Beans. When an annotation is specified in an interface, that interface becomes a remote business interface. |
@RemoteHome | Specify in an Enterprise Bean class that supports the invocation using a remote home interface, and remote component interface. |
@Remove | Specify in a business method that deletes Stateful Session Beans. |
@Schedule | Specify in a timeout method in which calendar base automatic generation timer of EJB timer service is called back. |
@Schedules | Specify multiple@Schedules. Specify in a timeout method that is called back. |
@Singleton | Specify this annotation in Singleton Session Bean class. |
@Startup | Specify this annotation when a Singleton Session Bean starts concurrently with application start up. Specify this annotation in Singleton Session Bean class. |
@Stateful | Specify in Stateful Session Bean class. |
@Stateless | Specify in a Stateless Session Bean class. |
@Timeout | Specify in a timeout method that is called back when TimerService is used. |
@TransactionAttribute | Specify transaction attributes when Enterprise Bean operates in CMT. |
@TransactionManagement | Specify the transaction management type of the Enterprise Bean. |