NonStop Servlets for JavaServer Pages (NSJSP) 6.1 System Administrator's Guide

Managing NSJSP
NonStop Servlets for JavaServer Pages (NSJSP) 6.1 System Administrator’s Guide596210-006
4-76
The following sample code shows how the Mail Session is added as Resource in the
server.xml file:
<Resource
name="MyMailSession"
type="javax.mail.Session"
mail.smtp.host="MyMailHost"
/>
Figure 4-45 displays the properties after selecting the Create New Mail Session
action from the Mail Session Actions list.
The following are the actions available under the Mail Session Actions list:
Create New Mail Session
Delete Mail Session
Environment Entries
The GlobalNamingResources is an environment entry resource. For more
information on GlobalNamingResources, see the GlobalNamingResources Element
on page 3-42.
The following sample code shows how the environment variable is set in the
server.xml file (under GlobalNamingResources):
<Environment
description=""
name="MyEnvVar"
type="java.lang.Boolean"
Figure 4-45. The Properties Displayed After Selecting the Create New Mail
Session Action