uCosminexus Application Server, API Reference Guide

[Contents][Index][Back][Next]

2.4 javax.ejb package

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

List of annotations
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.
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