Annotations Supported in AS9



Annotation

Annotation Attributes

Corrensponding Deployment Descriptor Elements

Comments

@ApplicationException




@AroundInvoke




@Binding



TBD

@CallbackListener




@DenyAll



<method-permission> in ejb-jar.xml


@EJB

Name

beanInterface

beanName

<ejb-ref>,

<ejb-local-ref> in ejb-jar.xml, web.xml


@EJBs



same as @EJB

@EntityManagerFactoryReference




@EntityManagerReferences




@Init




@Interceptor




@Interceptors




@Local




@MessageDriven


<message-driven> in ejb-jar.xml


@PermitAll


<method-permission> in ejb-jar.xml


@PostActivate




@PostConstruce




@PreDestroy




@PrePassivate






@Remove





@Remote





@Resource

name

shareable

description

type

authenticationType

<message-destination>, <message-destination-ref>, <resource-env-ref>, <message-ref> in ejb-jar.xml, web.xml


@Resources



same as @Resource

@RolesAllowed


<method-permission> in ejb-jar.xml


@RolesReferenced


<security-role> in ejb-jar.xml, web.xml


@RunAs


<run-as> in ejb-jar.xml, web.xml


@SecurityRoles




@Stateful


<session> in ejb-jar.xml


@Stateless


<session> in ejb-jar.xml


@Timeout


<trans-attribute> in ejb-jar.xml


@TransactionAttribute




@TransactionManagement


<transaction-type> in ejb-jar.xml


@WebMethod




@WebService



used for a service; using this obviates the need for
webservices.xml
@WebServiceRef



used for a client using a service; this makes the
service-ref in deployment descriptors unnecessary
@WebServiceClient



TBD