|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT |
@Target(value={TYPE,METHOD,FIELD}) @Retention(value=RUNTIME) public @interface EJB
Indicates a dependency on the local, no-interface, or remote view of an Enterprise Java Bean. Either beanName() or lookup() can be used to resolve the EJB dependency to its target session bean component. It is an error to specify values for both beanName() and lookup(). If no explicit linking information is provided and there is only one session bean within the same application that exposes the matching client view type, by default the EJB dependency resolves to that session bean.
Optional Element Summary | |
---|---|
java.lang.Class |
beanInterface
Holds one of the following types of the target EJB : [ Local business interface, bean class (for no-interface view), Remote business interface, Local Home interface, Remote Home interface ] |
java.lang.String |
beanName
The ejb-name of the Enterprise Java Bean to which this reference is mapped. |
java.lang.String |
description
|
java.lang.String |
lookup
A portable lookup string containing the JNDI name for the target EJB component. |
java.lang.String |
mappedName
The product specific name of the EJB component to which this ejb reference should be mapped. |
java.lang.String |
name
The logical name of the ejb reference within the declaring component's (e.g., java:comp/env) environment. |
public abstract java.lang.String name
public abstract java.lang.String description
public abstract java.lang.String beanName
public abstract java.lang.Class beanInterface
public abstract java.lang.String mappedName
public abstract java.lang.String lookup
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT |
Copyright © 2009, 2010, Oracle Corporation and/or its affiliates. All Rights Reserved. Use is subject to license terms.
Generated on 4-June-2010 04:34