Java Reference
In-Depth Information
The EJB3Model project gets added to the Dependencies . Click on OK , as
shown next:
In the JSP client, we look up the session bean and invoke the test() method on it,
which returns a String . First, we create an InitialContext :
InitialContext context = new InitialContext();
Two methods are available to look up a session bean using the remote
business interface.
• Look up the session bean remote interface using the mapped name. The
global JNDI name for a session bean remote business interface is derived
from the remote business interface name. The format of the global JNDI
name is mappedName#qualified_name_of_businessInterface .
• Specify the business interface JNDI name in the weblogic-ejb-jar.xml
deployment descriptor. The global JNDI name is specified as follows:
<weblogic-enterprise-bean>
<ejb-name>CatalogTestSessionEJBBean</ejb-name>
<stateless-session-descriptor>
<business-interface-jndi-name-map>
<business-remote>CatalogTestSessionEJB
</business-remote>
 
Search WWH ::




Custom Search