Java Reference
In-Depth Information
Tag name
Description
A list of one of more singleton beans that must be initial-
ized before this singleton bean. Applies only to singleton
beans. Use the ejb-link syntax to specify the dependencies:
@DependsOn.
depends-on
init-method
EJB 2-style create method for EJB 3 stateful EJBs: @Init.
EJB 2-style remove method for EJB 3 stateful beans: @Re-
move.
remove-method
Specifies method for asynchronous execution: @Asyn-
chronous.
async-method
Specifies transaction for an EJB. May either Bean or Con-
tainer: @TransactionManagement.
transaction-type
Transaction callback method for a stateful bean to inform it
that a new transaction has started: @AfterBegin.
after-begin-method
Transaction callback method for a stateful bean to inform it
that a transaction is about to be committed: @BeforeCom-
pletion.
before-completion-method
Transaction callback method for a stateful bean to inform it
that a transaction has finished committing. Both commit
and rollback will call this method: @AfterCompletion.
after-completion-method
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
post-activate
Lifecycle callback method after activation: @PostActivate.
Lifecycle callback method before passivation: @PrePassiv-
ate.
pre-passivate
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
passivation-capable
Is the stateful bean able to be passivated?
<message-driven>
The <message-driven> tag is used to define a message-driven bean (MDB):
<ejb-jar...>
<enterprise-beans>
<message-driven>...</message-driven>
</enterprise-beans>
</ejb-jar>
The corresponding annotation is @MessageDriven . Table A.2 describes the tags to con-
figure <message-driven> .
Search WWH ::




Custom Search