beanName or the
lookup element can
be used to resolve the EJB dependency to its target session bean component.
It is an error to specify values for both
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.
|Modifier and Type||Optional Element and Description|
The interface type of the Enterprise Java Bean to which this reference is mapped.
A string describing the bean.
A portable lookup string containing the JNDI name for the target EJB component.
The product specific name of the EJB component to which this ejb reference should be mapped.
The logical name of the ejb reference within the declaring component's (e.g., java:comp/env) environment.
public abstract String name
public abstract String description
public abstract String beanName
beanNameelement references the value of the
nameelement of the
Statelessannotation, whether defaulted or explicit. If the deployment descriptor was used to define the name of the bean, the
beanNameelement references the
ejb-nameelement of the bean definition.
beanName element allows disambiguation if multiple session
beans in the ejb-jar implement the same interface.
In order to reference a bean in another ejb-jar file in the same application,
beanName may be composed of a path name specifying the ejb-jar
containing the referenced bean with the bean name of the target bean appended and
separated from the path name by #. The path name is relative to the jar file
containing the component that is referencing the target bean.
Only applicable if the target EJB is defined within the same application or stand-alone module as the declaring component.
public abstract Class beanInterface
Holds one of the following types of the target EJB :
public abstract String mappedName
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.
public abstract String lookup
Copyright © 1996-2013, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.