EJB 3.0 metadata annotations

Annotations enable you to write metadata for Enterprise JavaBeans (EJB) inside your source code. You can use them instead of extensible markup language (XML) deployment descriptor files. Annotations can also be used with descriptor files.

The WebSphere Application Server also provides default values for most of the EJB annotations it uses. In many cases, omitting an annotation implies that you want to use the default value.

For the most part, annotations are found in the javax.ejb and javax.persistence packages.

Table 1.
Annotation type
ExcludeDefaultInterceptors
ApplicationException
AroundInvoke
EJB
EJBs
ExcludeDefaultInterceptors
ExcludeDefaultInterceptors
Init
Interceptors
Local
LocalHome
MessageDriven
PersistenceUnit
PostActivate
PostConstruct
PreDestroy
PrePassivate
Remote
RemoteHome
Remove
Resource
Stateful
Stateless
Timeout
TransactionAttribute
TransactionManagement



Subtopics
EJB 3.0 interceptors
Related concepts
Enterprise beans
Related tasks
Developing enterprise beans
Related reference
Best practices for developing enterprise beans
Enterprise beans: Resources for learning
Reference topic Reference topic    

Terms and conditions for information centers | Feedback

Last updatedLast updated: Aug 31, 2013 2:56:59 AM CDT
http://www14.software.ibm.com/webapp/wsbroker/redirect?version=pix&product=was-nd-dist&topic=rejb_3annotations
File name: rejb_3annotations.html