Programming the Annotated EJB 3.0 Class 5-19
5.4.5 Transaction-Related Annotations
The following summarize the annotations used for transactions.
5.4.6 Annotations to Specify Interceptors
The following summarize the annotations used to specify interceptors.
5.4.7 Annotations to Specify Life Cycle Callbacks
The following summarize the annotations used to specify life cycle callbacks. javax.persistence.PersistenceUnits
Specifies one or more PersistenceUnit annotations. For more information, see
Section A.4.4, javax.persistence.PersistenceUnits.
Table 5–5 Transaction-Related Annotations
Annotation Description
javax.ejb.TransactionManagement Specifies the transaction management
demarcation type container- or bean-managed. For more information, see
Section A.2.18, javax.ejb.TransactionManagement.
javax.ejb.TransactionAttribute Specifies whether a business method is invoked
within the context of a transaction. For more information, see
Section A.2.18, javax.ejb.TransactionManagement.
Table 5–6 Annotations to Specify Interceptors
Annotation Description
javax.interceptor.Interceptors Specifies the list of interceptor classes associated
with a bean class or method. For more information, see
Section A.3.4, javax.interceptor.Interceptors.
javax.interceptor.AroundInvoke Specifies an interceptor method. For more
information, see Section A.3.1,
javax.interceptor.AroundInvoke. javax.interceptor.ExcludeClassInterc
eptors Specifies that, when the annotated method is
invoked, the class-level interceptors should not invoke. For more information, see
Section A.3.2, javax.interceptor.ExcludeClassInterceptors.
javax.interceptor.ExcludeDefaultInte rceptors
Specifies that, when the annotated method is invoked, the default interceptors should not
invoke. For more information, see Section A.3.3,
javax.interceptor.ExcludeDefaultInterceptors.
Table 5–7 Annotations to Specify Life Cycle Callbacks
Annotation Description
javax.ejb.PostActivate Designates a method to receive a callback after a
stateful session bean has been activated. For more information, see
Section A.2.9, javax.ejb.PostActivate.
Table 5–4 Cont. Annotations to Invoke a 3.0 Entity Bean
Annotation Description
5-20 Programming Enterprise JavaBeans, Version 3.0, for Oracle WebLogic Server
5.4.8 Security-Related Annotations