NonStop Servlets for JSP System Administrator's Guide

Interoperability of NSJSP With NonStop EJB
NonStop Servlets for JavaServer Pages (NSJSP) System Administrator’s Guide525644-001
6-3
References to EJB Components
Symbolically link the ejbServlet_Security.jar file either in the
iTPWS_INSTALL_DIR/servlet_jsp/common/lib directory or in the
WEB-INF/lib directory for every application that uses EJB.
The following alternatives in Example 6-3 show you how to use OSS Shell commands
to add the ejbServlet_Security.jar file to a web application called myEJBApp,
which uses EJB.
References to EJB Components
Environment entries allow passing parameter values (that may change at deployment
time) to a web application. The <env-entry> tag in the web application's
WEB-INF/web.xml file provides this functionality. Refer to the Java Servlets™
Specification Version 2.3 for more details. The environment entries support only the
following types:
java.lang.Boolean
java.lang.Byte
java.lang.Double
java.lang.Float
java.lang.Integer
java.lang.Long
java.lang.Short
java.lang.String
When the environment entry is an EJB component, the special <ejb-ref> tag must
be used. This allows the Java code running in the NSJSP container a way to get a
handle to an EJB using an abstract name.
The <ejb-ref> tag supports the following elements (tags under it):
<description>
Description of the EJB reference. This entry is optional but it is a good idea to
provide it as it helps in clarifying the purpose of this <ejb-ref> element.
Example 6-3. Linking ejb.jar Files to Web Applications
osh> cd /usr/tandem/webserver/servlet_jsp/common/lib
osh> ln -s /usr/tandem/nsejb/lib/fixup4NSJSP/ejbServlet_Security.jar .
OR
osh> cd /usr/tandem/webserver/servlet_jsp/webapps/myEJBApp
osh> mkdir -p WEB-INF/lib
osh> cd WEB-INF/lib
osh> ln -s /usr/tandem/nsejb/lib/fixup4NSJSP/ejbServlet_Security.jar .