Java Reference
In-Depth Information
Table A.6. Tags to configure <container-transaction>
Tag name
Description
Specifies the transaction attribute of the method. Valid values are Re-
quired, RequiresNew, NotSupported, Supports, Never, Mandatory.
trans-attribute
Specifies the name of the EJB (as specified in <session><ebj-name>)
and the name of the method to secure.
method
<interceptor-binding>
The <interceptor-binding> tag is used to bind interceptors to EJBs at either a class
level or a method level:
<ejb-jar...>
<assembly-descriptor>
<interceptor-binding>...</interceptor-binding>
</assembly-descriptor>
</ejb-jar>
This tag is similar to the @ Interceptors annotation. Table A.7 describes the tags to
configure <interceptor-binding> .
Table A.7. Tags to configure <interceptor-binding>
Tag name
Description
Specifies the name of the EJB, as specified in <session><ebj-name>
or the "name" element of @Stateless or @Stateful. This will apply
the interceptor to all methods of the class. A value of “*” will create a
default interceptor and bind to all EJB and MDB in the ejb-jar.xml
file or .war file.
ejb-name
A list of interceptor classes that are bound to the contents of the ejb-
name element. The interceptor-order is optional, and if used specifies
the order in which the interceptors are to be called. No corresponding
annotation for specifying order.
<interceptor-order> <interceptor-class>..</>
</interceptor-order>
Specifies that default interceptors aren't to be applied to the EJB class
or method: @Exclude-DefaultInterceptors.
exclude-default-interceptors
Specifies that class interceptors aren't to be applied to the EJB class
or method: @ExcludeClassInterceptors.
exclude-class-interceptors
method
Specifies which method.
<message-destination>
The <message-destination> tag specifies a logical destination name that's later
mapped to a physical destination by the deployer:
 
 
Search WWH ::




Custom Search