Title: Annotations, XML and Defaults 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 | * | |
- name | | The simple name of the bean class. For _org.acme.superfun.WidgetBean_ the ejb-name will be *WidgetBean* |
- description | | |
- mappedName | | |
@Stateful | * | |
- name | | The simple name of the bean class. For _org.acme.superfun.WidgetBean_ the ejb-name will be *WidgetBean* |
- description | | |
- mappedName | | |
@MessageDriven | * | |
- name | | The simple name of the bean class. For _org.acme.superfun.WidgetBean_ the ejb-name will be *WidgetBean* |
- description | | |
- mappedName | | |
- messageListenerInterface | | The interface the bean class implements. When relying upon the default is illegal for the bean to implement more than one interface |
- activationConfig\[](.html) | | |
@ActivationConfigProperty | | |
- propertyName | | |
- propertyValue | | |
@RemoteHome | * | |
@LocalHome | * | |
@TransactionManagement | | TransactionManagementType.CONTAINER (xml value "Container") |
@TransactionAttribute | * | |
@RolesAllowed | * | |
@PermitAll | * | |
@DenyAll | | |
@RunAs | * | |
@DeclareRoles | | |
@Interceptors | * | |
@ExcludeDefaultInterceptors | * | |
@ExcludeClassInterceptors | * | |
@AroundInvoke | | |
@PostConstruct | | |
@PreDestroy | | |
@PrePassivate | | |
@PostActivate | | |
@Init | | |
@Remove | | |
- retainIfException | | false |
@Timeout | | |
@ApplicationException | * | |
- rollback | | false |
@EJB | * | |
- name | * | * on class: illegal to leave undefined |
- beanInterface | * | |
- beanName | | |
- description | | |
- mappedName | | |
@Resource | * | |
- name | * | |
- type | * | |
- description | | |
- mappedName | | |
- shareable | | true (xml value "Shareable") |
- authenticationType | | AuthenticationType.CONTAINER (xml value "Container") |
@PersistenceUnit | * | |
- name | | on class: illegal to leave undefined |
- unitName | | vendor specific |
@PersistenceContext | * | |
- name | | on class: illegal to leave undefined |
- unitName | | vendor specific |
- type | | PersistenceContextType.TRANSACTION (xml value "Transaction") |
- properties[](.html) | ||
@PersistenceProperty | | |
- name | | |
- value | |