Java Reference
In-Depth Information
Table A.2. Tags to configure <message-driven>
Tag name
Description
The logical name for the MDB. Property "name" of @Mes-
sageDriven.
ejb-name
A vendor-specific name for the bean. Property
"mappedName" of @MessageDriven.
mapped-name
ejb-class
Fully qualified name of the bean class.
Messaging type supported—that is, the message listener in-
terface of the MDB. Property "messageListenerInterface"
of @MessageDriven.
messaging-type
The callback method for programmatically created timers:
@Timeout.
timeout-method
An EJB timer. Created by the container on deployment.
Callbacks made to the timeout-method.
timer
Specifies transaction for an EJB. May be either Bean or
Container. @TransactionManagement
transaction-type
message-destination-type
Expected type of the destination—that is, javax.jms.Queue.
A vendor-specific mapping of a logical destination with the
actual destination.
message-destination-link
Name/value pairs to configure the MDB when running in
the EJB container. Property "activationConfig" of @Mes-
sageDriven.
activation-config
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
security-role-ref
References internal roles to external roles.
Use the caller's security identity to enforce security or
override the caller's identity for the specified “run-as” iden-
tity.
security-identity
A.1.3. Interceptors
The <interceptors> tag is used to define interceptors for your EJB module:
<ejb-jar...>
<interceptors>
<interceptor>...</interceptor>
</interceptors>
</ejb-jar>
Typically, you'd create an EJB interceptor by creating a new Java class and annotating a
method of the new class with @AroundInvoke and @AroundTimeout . The <inter-
 
Search WWH ::




Custom Search