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.0 specification

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

name

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

Default:
""

beanInterface

public abstract java.lang.Class beanInterface
Interface of the EJB.

Default:
java.lang.Object.class

beanName

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

Default:
""

mappedName

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

Default:
""

description

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

Default:
""


Copyright © 2008. All Rights Reserved.