You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 5 Next »

Annotation

xml element(s)

default value

@Stateless

  • <session>
  • <ejb-class>
  • <session-type>Stateless</session-type>

 

  • name

<ejb-name>

The simple name of the bean class. For org.acme.superfun.WidgetBean the ejb-name will be WidgetBean

  • description

<description>

 

  • mappedName

<mapped-name>

 

@Stateful

  • <session>
  • <ejb-class>
  • <session-type>Stateful</session-type>

 

  • name

<ejb-name>

The simple name of the bean class. For org.acme.superfun.WidgetBean the ejb-name will be WidgetBean

  • description

<description>

 

  • mappedName

<mapped-name>

 

@MessageDriven

  • <message-driven>
  • <ejb-class>
  • <session-type>Stateful</session-type>

 

  • name

<ejb-name>

The simple name of the bean class. For org.acme.superfun.WidgetBean the ejb-name will be WidgetBean

  • description

<description>

 

  • mappedName

<mapped-name>

 

  • messageListenerInterface

<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="01c3009e-ed22-4a5f-8ae9-e9283abdd86f"><ac:plain-text-body><![CDATA[

  • activationConfig[]

<activation-config>

 

]]></ac:plain-text-body></ac:structured-macro>

@ActivationConfigProperty

<activation-config-property>

 

  • propertyName

<activation-config-property-name>

 

  • propertyValue

<activation-config-property-value>

 

@RemoteHome

  • <home>
  • <remote>

The home is inspected to determine the value of <remote>

@LocalHome

  • <local-home>
  • <local>

The local-home is inspected to determine the value of <local>

@TransactionManagement

<transaction-type>

TransactionManagementType.CONTAINER

@TransactionAttribute

  • <container-transaction>
  • <transaction-attribute>

All method default to TransactionAttributeType.REQUIRED

@RolesAllowed

  • <method-permission>
  • <role-name>

 

@PermitAll

  • <method-permission>
  • <unchecked>

All methods default to unchecked

@DenyAll

<exclude-list>

 

@RunAs

  • <security-identity>
  • <run-as>
  • <role-name>

 

@DeclareRoles

<security-role-ref>

 

@Interceptors

  • <interceptor>
  • <interceptor-binding>
  • <interceptor-class>

 

@ExcludeDefaultInterceptors

  • <interceptor-binding>
  • <exclude-default-interceptors>

 

@ExcludeClassInterceptors

  • <interceptor-binding>
  • <exclude-class-interceptors>

 

@AroundInvoke

<around-invoke>

 

@PostConstruct

<post-construct>

 

@PreDestroy

<pre-destroy>

 

@PrePassivate

<pre-passivate>

 

@PostActivate

<post-activate>

 

@Init

<init-method>

 

@Remove

<remove-method>

 

  • retainIfException

<retain-if-exception>

false

@Timeout

<timeout-method>

 

@ApplicationException

  • <application-exception>
  • <exception-class>

 

  • rollback

<rollback>

false

@EJB

  • <ejb-ref>
  • <ejb-local-ref>
  • <injection-target>

 

  • name
  • <ejb-ref-name>
  • on class: illegal to leave undefined
  • on field: {className}/{fieldName} as in org.superbiz.Widget/myEjb
  • on setter: {className}/{propertyName} as in setMyEjb() defaults to org.superbiz.Widget/myEjb
  • beanInterface
  • <home>
  • <local-home>
  • <remote>
  • <local>
  • on class: illegal to leave undefined
  • on field: the data type of the field
  • on setter: the data type of the first method param
  • beanName

<ejb-link>

 

  • description

<description>

 

  • mappedName

<mapped-name>

 

@Resource

  • <env-entry>
  • <resource-ref>
  • <resource-env-ref>
  • <injection-target>

 

  • name
  • <env-entry-name>
  • <res-ref-name>
  • <resource-env-ref-name>
  • on class: illegal to leave undefined
  • on field: {className}/{fieldName} as in org.superbiz.Widget/myDataSource
  • on setter: {className}/{propertyName} as in setMyDataSource() defaults to org.superbiz.Widget/myDataSource
  • type
  • <env-entry-type>
  • <res-type>
  • <resource-env-ref-type>
  • on class: illegal to leave undefined
  • on field: the data type of the field
  • on setter: the data type of the first method param
  • description

<description>

 

  • mappedName

<mapped-name>

 

  • shareable

<res-sharing-scope>

true (xml value "Shareable")

  • authenticationType

<res-auth>

Container

  • No labels