Java Reference
In-Depth Information
ceptor> tag corresponds to these annotations. In addition, the <interceptor> tag is
required to configure a global interceptor, because no corresponding annotation exists for
global interceptors. Table A.3 describes the tags to configure <interceptor> .
Table A.3. Tags to configure <interceptor>
Tag name
Description
description
Description of this interceptor.
interceptor-class
The fully qualified name of the class to serve as your interceptor.
The method name on a class to be called during the around-invoke
portion of an EJB invocation: @AroundInvoke.
around-invoke
The method name on a class to be called during the around-timeout
portion of an EJB invocation: @AroundTimeout.
around-timeout
The method name on a class to be called during an object's construc-
tion: @AroundConstruct.
around-construct
post-activate
Lifecycle callback method after activation: @PostActivate.
pre-passivate
Lifecycle callback method before passivation: @PrePassivate.
A.1.4. <assembly-descriptor>
The <assembly-descriptor> tag is used to define declarative transactions, security
role and method permissions, and interceptor bindings:
<ejb-jar...>
<assembly-descriptor>...</assembly-descriptor>
</ejb-jar>
<security-role>
The <security-role> tag is used to define security roles used in the application:
<ejb-jar...>
<assembly-descriptor>
<security-role>...</security-role>
</assembly-descriptor>
</ejb-jar>
The corresponding annotation is @DeclareRoles . Table A.4 describes the tag to config-
ure <security-role> .
 
Search WWH ::




Custom Search