Annotation |
xml element(s) |
default value |
@Stateless |
- <session>
- <ejb-class>
- <session-type>Stateless</session-type>
|
|
|
<ejb-name> |
The simple name of the bean class. For org.acme.superfun.WidgetBean the ejb-name will be WidgetBean |
|
<description> |
|
|
<mapped-name> |
|
@Stateful |
- <session>
- <ejb-class>
- <session-type>Stateful</session-type>
|
|
|
<ejb-name> |
The simple name of the bean class. For org.acme.superfun.WidgetBean the ejb-name will be WidgetBean |
|
<description> |
|
|
<mapped-name> |
|
@MessageDriven |
- <message-driven>
- <ejb-class>
- <session-type>Stateful</session-type>
|
|
|
<ejb-name> |
The simple name of the bean class. For org.acme.superfun.WidgetBean the ejb-name will be WidgetBean |
|
<description> |
|
|
<mapped-name> |
|
|
<messaging-type> |
The interface the bean class implements. When relying upon the default is illegal for the bean to implement more than one interface |
|
<activation-config> |
|
@ActivationConfigProperty |
<activation-config-property> |
|
|
<activation-config-property-name> |
|
|
<activation-config-property-value> |
|
@RemoteHome |
|
The home is inspected to determine the value of <remote> |
@LocalHome |
|
The local-home is inspected to determine the value of <local> |
@TransactionManagement |
<transaction-type> |
TransactionManagementType.CONTAINER (xml value "Container") |
@TransactionAttribute |
- <container-transaction>
- <transaction-attribute>
|
All method default to TransactionAttributeType.REQUIRED (xml value "Required") |
@RolesAllowed |
- <method-permission>
- <role-name>
|
|
@PermitAll |
- <method-permission>
- <unchecked>
|
All methods default to unchecked |
@DenyAll |
<exclude-list> |
|
@RunAs |
- <security-identity>
- <run-as>
- <role-name>
|
|
@DeclareRoles |
<security-role-ref> |
|
@Interceptors |
- <interceptor>
- <interceptor-binding>
- <interceptor-class>
|
|
@ExcludeDefaultInterceptors |
- <interceptor-binding>
- <exclude-default-interceptors>
|
|
@ExcludeClassInterceptors |
- <interceptor-binding>
- <exclude-class-interceptors>
|
|
@AroundInvoke |
<around-invoke> |
|
@PostConstruct |
<post-construct> |
|
@PreDestroy |
<pre-destroy> |
|
@PrePassivate |
<pre-passivate> |
|
@PostActivate |
<post-activate> |
|
@Init |
<init-method> |
|
@Remove |
<remove-method> |
|
|
<retain-if-exception> |
false |
@Timeout |
<timeout-method> |
|
@ApplicationException |
- <application-exception>
- <exception-class>
|
|
|
<rollback> |
false |
@EJB |
- <ejb-ref>
- <ejb-local-ref>
- <injection-target>
|
|
|
|
- on class: illegal to leave undefined
- on field: {className}/{fieldName} as in org.superbiz.Widget/myEjb
- on setter: {className}/{propertyName} as in setMyEjb() defaults to org.superbiz.Widget/myEjb
|
|
- <home>
- <local-home>
- <remote>
- <local>
|
- on class: illegal to leave undefined
- on field: the data type of the field
- on setter: the data type of the first method param
|
|
<ejb-link> |
|
|
<description> |
|
|
<mapped-name> |
|
@Resource |
- <env-entry>
- <resource-ref>
- <resource-env-ref>
- <injection-target>
|
|
|
- <env-entry-name>
- <res-ref-name>
- <resource-env-ref-name>
|
- on class: illegal to leave undefined
- on field: {className}/{fieldName} as in org.superbiz.Widget/myDataSource
- on setter: {className}/{propertyName} as in setMyDataSource() defaults to org.superbiz.Widget/myDataSource
|
|
- <env-entry-type>
- <res-type>
- <resource-env-ref-type>
|
- on class: illegal to leave undefined
- on field: the data type of the field
- on setter: the data type of the first method param
|
|
<description> |
|
|
<mapped-name> |
|
|
<res-sharing-scope> |
true (xml value "Shareable") |
|
<res-auth> |
AuthenticationType.CONTAINER (xml value "Container") |
@PersistenceUnit |
- <persistence-unit-ref>
- <injection-target>
|
|
|
<persistence-unit-ref-name> |
on class: illegal to leave undefined
- on field: {className}/{fieldName} as in org.superbiz.Widget/myUnit
- on setter: {className}/{propertyName} as in setMyUnit() defaults to org.superbiz.Widget/myUnit
|
|
<persistence-unit-name> |
vendor specific |
@PersistenceContext |
- <persistence-context-ref>
- <injection-target>
|
|
|
<persistence-context-ref-name> |
on class: illegal to leave undefined
- on field: {className}/{fieldName} as in org.superbiz.Widget/myContext
- on setter: {className}/{propertyName} as in setMyContext() defaults to org.superbiz.Widget/myContext
|
|
<persistence-unit-name> |
vendor specific |
|
<persistence-context-type> |
PersistenceContextType.TRANSACTION (xml value "Transaction") |
|
|
|
@PersistenceProperty |
<persistence-property> |
|
|
<name> |
|
|
<value> |
|