Common annotations |
@Resource |
The Resource annotation declares a reference
to a resource that is required by the application. |
@Resources |
The Resources annotation declares multiple resources
declarations. |
@DeclaresRoles |
The DeclaresRoles annotation specifies the security
roles for the application. |
@RunAs |
The RunAs annotation specifies the role of the
application during run time. |
@PostConstruct |
The PostConstruct annotation specifies the container
that will start after resource injection is complete to perform any
initialization. |
@PreDestroy |
The PreDestroy annotation is used to signal
that the instance is in being removed by the container. |
EJBs |
@PersistenceContext |
The PersistenceContext annotation specifies
the container managed entity context. |
@PersistenceContexts |
The PersistenceContexts annotation declares
multiple @PersistenceContext annotations. |
@PersistenceUnit |
The PersistenceUnit annotation specifies a reference
to an entity manager factory for use with EJBs. |
@PersistenceUnits |
The PersistenceUnits annotation declares multiple
@PersistenceUnit annotations. |
Web services |
@WebServiceRef |
The WebServiceRef annotation specifies a reference
to a web service within a web application. |
@WebServicesRefs |
The WebServicesRefs annotation declares multiple
@WebServiceRef annotations. |