Either the beanName or the lookup element can be used to resolve the enterprise bean
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 enterprise bean dependency resolves to that session bean.
| Modifier and Type | Method and Description |
|---|---|
| public Class | Returns: ajava.lang.Class object.The interface type of the Enterprise Bean to which this reference is mapped. |
| public String | Returns: ajava.lang.String object.The |
| public String | |
| public String | Returns: ajava.lang.String object.A portable lookup string containing the JNDI name for the target enterprise bean component. |
| public String | Returns: ajava.lang.String object.The product specific name of the enterprise bean component to which this enterprise bean reference should be mapped. |
| public String | Returns: ajava.lang.String object.The logical name of the enterprise bean reference within the declaring component's (e.g., java:comp/env) environment. |
| beanInterface | back to summary |
|---|---|
| public Class The interface type of the Enterprise Bean to which this reference is mapped. Holds one of the following types of the target enterprise bean :
| |
| beanName | back to summary |
|---|---|
| public String beanName() The
The
In order to reference a bean in another ejb-jar file in the same application, the Only applicable if the target enterprise bean is defined within the same application or stand-alone module as the declaring component.
| |
| description | back to summary |
|---|---|
| public String description() A string describing the bean.
| |
| lookup | back to summary |
|---|---|
| public String lookup() A portable lookup string containing the JNDI name for the target enterprise bean component.
| |
| mappedName | back to summary |
|---|---|
| public String mappedName() The product specific name of the enterprise bean component to which this enterprise bean 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.
| |
| name | back to summary |
|---|---|
| public String name() The logical name of the enterprise bean reference within the declaring component's (e.g., java:comp/env) environment.
| |