The following is a list of all annotations and their attributes, the xml tags that correspond to them (for overriding), and what the default values are when left unspecified.
Annotation | xml element(s) | default value | ||
---|---|---|---|---|
@Stateless |
|
| ||
| <ejb-name> | The simple name of the bean class. For org.acme.superfun.WidgetBean the ejb-name will be WidgetBean | ||
| <description> |
| ||
| <mapped-name> |
| ||
@Stateful |
|
| ||
| <ejb-name> | The simple name of the bean class. For org.acme.superfun.WidgetBean the ejb-name will be WidgetBean | ||
| <description> |
| ||
| <mapped-name> |
| ||
@MessageDriven |
|
| ||
| <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 | <ac:structured-macro ac:name="unmigrated-wiki-markup" ac:schema-version="1" ac:macro-id="ec172591-f960-46cd-9eb2-68c76e1d6c85"><ac:plain-text-body><![CDATA[ | unmigrated-wiki-markup |
| <activation-config> |
| ]]></ac:plain-text-body></ac:structured-macro> | |
@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 |
| All method default to TransactionAttributeType.REQUIRED (xml value "Required") | ||
@RolesAllowed |
|
| ||
@PermitAll |
| All methods default to unchecked | ||
@DenyAll | <exclude-list> |
| ||
@RunAs |
|
| ||
@DeclareRoles | <security-role-ref> |
| ||
@Interceptors |
|
| ||
@ExcludeDefaultInterceptors |
|
| ||
@ExcludeClassInterceptors |
|
| ||
@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 |
|
| ||
| <rollback> | false | ||
@EJB |
|
| ||
|
|
| ||
|
|
| ||
| <ejb-link> |
| ||
| <description> |
| ||
| <mapped-name> |
| ||
@Resource |
|
| ||
|
|
| ||
|
|
| ||
| <description> |
| ||
| <mapped-name> |
| ||
| <res-sharing-scope> | true (xml value "Shareable") | ||
| <res-auth> | AuthenticationType.CONTAINER (xml value "Container") | ||
@PersistenceUnit |
|
| ||
| <persistence-unit-ref-name> | on class: illegal to leave undefined
| ||
| <persistence-unit-name> | vendor specific | ||
@PersistenceContext |
|
| ||
| <persistence-context-ref-name> | on class: illegal to leave undefined
| ||
| <persistence-unit-name> | vendor specific | ||
| <persistence-context-type> | PersistenceContextType.TRANSACTION (xml value "Transaction") | ||
|
|
| ||
@PersistenceProperty | <persistence-property> |
| ||
| <name> |
| ||
| <value> |
|