NonStop Servlets for JSP System Administrator's Guide
Interoperability of NSJSP With NonStop EJB
NonStop Servlets for JavaServer Pages (NSJSP) System Administrator’s Guide—525644-001
6-5
References to EJB Components
Refer to the NonStop EJB User’s Guide as well as the Translator sample
documentation (referenced in Example 6-5) on how to package and deploy the
Translator Sample.
Example 6-5 is an sample of the deployment descriptor tags required in the web
application's WEB-INF/web.xml file.
Example 6-5. Deployment Descriptor Tags in the WEB-INF/web.xml File
<web-app>
...
<ejb-ref>
<description>NonStop™ EJB Translator Reference</description>
<!-- The ejb-ref is bound in the java:/comp/env namespace. So the
JNDI lookup should use java:/comp/env/ejb/TranslatorWebRef
to get to this ejb reference.
-->
<ejb-ref-name>ejb/TranslatorWebRef</ejb-ref-name>
<ejb-ref-type>Entity</ejb-ref-type>
<home>TranslatorHome</home>
<remote>Translator</remote>
<ejb-link>TranslatorSample</ejb-link>
</ejb-ref>
...
</web-app>