javax.ejb
Annotation Type EJB


@Target(value={TYPE,METHOD,FIELD})
@Retention(value=RUNTIME)
public @interface EJB

Allows to inject a reference to an EJB.

Since:
EJB 3.0 version.
Author:
Florent Benoit
See Also:
EJB 3.1 specification

Optional Element Summary
 Class beanInterface
          Interface of the EJB.
 String beanName
          Name of the EJB as it is declared on the Stateless/Stateful bean.
 String description
          Description of this link to an EJB.
 String lookup
           
 String mappedName
          The JNDI name to use to search bean in the RMI registry.
 String name
          Name in java:comp/env ENC environment to use.
 

name

public abstract String name
Name in java:comp/env ENC environment to use.

Default:
""

beanInterface

public abstract Class beanInterface
Interface of the EJB.

Default:
java.lang.Object.class

beanName

public abstract String beanName
Name of the EJB as it is declared on the Stateless/Stateful bean.

Default:
""

mappedName

public abstract String mappedName
The JNDI name to use to search bean in the RMI registry.

Default:
""

description

public abstract String description
Description of this link to an EJB.

Default:
""

lookup

public abstract String lookup
Returns:
a portable lookup string containing the JNDI name for the target EJB component.
Since:
EJB 3.1 version
Default:
""


Copyright © 2007-2012 OW2 Consortium. All Rights Reserved.