EJB (Java EE 5 SDK)

Java

Java EE 5 SDK

深圳电信培训中心.徐海蛟老师.


javax.ejb Annotation Type EJB


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

Indicates a dependency on the local or remote view of an Enterprise Java Bean.


Optional Element Summary
 Class beanInterface
          Holds one of the following interface types of the target EJB : [ Local business interface, Remote business interface, Local Home interface, Remote Home interface ]
 String beanName
          The ejb-name of the Enterprise Java Bean to which this reference is mapped.
 String description
           
 String mappedName
          The product specific name of the EJB component to which this ejb reference should be mapped.
 String name
          The logical name of the ejb reference within the declaring component's (java:comp/env) environment.
 

name

public abstract String name
The logical name of the ejb reference within the declaring component's (java:comp/env) environment.

默认值:
""

description

public abstract String description
默认值:
""

beanName

public abstract String beanName
The ejb-name of the Enterprise Java Bean to which this reference is mapped. Only applicable if the target EJB is defined within the same application or stand-alone module as the declaring component.

默认值:
""

beanInterface

public abstract Class beanInterface
Holds one of the following interface types of the target EJB : [ Local business interface, Remote business interface, Local Home interface, Remote Home interface ]

默认值:
java.lang.Object.class

mappedName

public abstract String mappedName
The product specific name of the EJB component to which this ejb reference should be mapped. This mapped name is often a global JNDI name, but may be a name of any form. Application servers are not required to support any particular form or type of mapped name, nor the ability to use mapped names. The mapped name is product-dependent and often installation-dependent. No use of a mapped name is portable.

默认值:
""

Java EE 5 SDK

深圳电信培训中心.徐海蛟老师.


提交错误或意见

版权所有 2007 Sun Microsystems, Inc. 保留所有权利。 请遵守许可证条款。深圳电信培训中心.徐海蛟老师教学参考.