2.4 javax.ejb package

The following table lists the annotations included in the javax.ejb package:

List of annotations
Annotation nameFunctionality
@AccessTimeoutSpecify the timeout value of the concurrent access of Singleton Session Bean set by the Container Managed Concurrency.
@AfterBeginSpecify in a method that is called back immediately after starting the transaction of Stateful Session Bean.
@AfterCompletionSpecify in a method that is called back after completing the transaction of Stateful Session Bean.
@ApplicationExceptionSpecify in an exception class that is considered as an application exception.
@AsynchronousSpecify in a business method that is executed asynchronously.
Specify in a class and method of Stateless Session Bean or Singleton Session Bean.
@BeforeCompletionSpecify in a method that is called back immediately before completing the transaction of Stateful Session Bean.
@ConcurrencyManagementSpecify the type of the ConcurrencyManagement of Singleton Session Bean. Specify this annotation only in the Singleton Session Bean class.
@DependsOnSpecify to specify the dependency relation between Singleton Session Beans. Specify this annotation only in Singleton Session Bean class.
@EJBSpecify the reference to EJB business interface or home interface.
@EJBsSpecify multiple @EJB.
@InitSpecify in a method that is called back when create <METHOD>()defined in the home interface of Stateful Session Bean is executed.
@LocalSpecify the local business interface of Enterprise Beans.
@LocalBeanSpecify if Session Bean is specified as No-Interface view. Specify this annotation only in the Session Bean class.
@LocalHomeSpecify in an Enterprise Bean class that supports the invocation using the local home interface, and local component interface.
@LockSpecify 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.
@PostActivateSpecify in a method that is called back immediately after Stateful Session Bean is activated.
@PrePassivateSpecify in a method that is called back immediately before Stateful Session Bean is passivated.
@RemoteSpecify the remote business interface of Enterprise Beans. When an annotation is specified in an interface, that interface becomes a remote business interface.
@RemoteHomeSpecify in an Enterprise Bean class that supports the invocation using a remote home interface, and remote component interface.
@RemoveSpecify in a business method that deletes Stateful Session Beans.
@ScheduleSpecify in a timeout method in which calendar base automatic generation timer of EJB timer service is called back.
@SchedulesSpecify multiple@Schedules. Specify in a timeout method that is called back.
@SingletonSpecify this annotation in Singleton Session Bean class.
@StartupSpecify this annotation when a Singleton Session Bean starts concurrently with application start up. Specify this annotation in Singleton Session Bean class.
@StatefulSpecify in Stateful Session Bean class.
@StatelessSpecify in a Stateless Session Bean class.
@TimeoutSpecify in a timeout method that is called back when TimerService is used.
@TransactionAttributeSpecify transaction attributes when Enterprise Bean operates in CMT.
@TransactionManagementSpecify the transaction management type of the Enterprise Bean.
Organization of this section
2.4.1 @AccessTimeout
2.4.2 @AfterBegin
2.4.3 @AfterCompletion
2.4.4 @ApplicationExceptionn
2.4.5 @Asynchronous
2.4.6 @BeforeCompletion
2.4.7 @ConcurrencyManagement
2.4.8 @DependsOn
2.4.9 @EJB
2.4.10 @EJBs
2.4.11 @Init
2.4.12 @Local
2.4.13 @LocalBean
2.4.14 @LocalHome
2.4.15 @Lock
2.4.16 @PostActivate
2.4.17 @PrePassivate
2.4.18 @Remote
2.4.19 @RemoteHome
2.4.20 @Remove
2.4.21 @Schedule
2.4.22 @Schedules
2.4.23 @Singleton
2.4.24 @Startup
2.4.25 @Stateful
2.4.26 @Stateless
2.4.27 @Timeout
2.4.28 @TransactionAttribute
2.4.29 @TransactionManagement