NonStop JMS User's Manual (H06.03+, J06.03+, NonStop JMS 3.0+)

Reliable Messaging Bridge
NonStop Server for Java Message Service User’s Manual522356-006
5-25
Stop Script
Stop Script
The configuration tool replaces a generic configuration placeholder contained in the
stop_template.txt file with a bridge Pathway configured value when the
executable Pathway stop script (stop_pathmon_name) is generated using the add
bridge, alter bridge, or delete bridge commands. The stop script is used to
stop a bridge within a Pathway environment (see Stopping the Bridge on page 5-18).
The generic configuration placeholder replaced in the stop_template.txt file is
shown in bold text in Example 5-4 on page 5-26. A sample executable Pathway stop
script containing the bridge Pathway configured values in bold text is shown in
Example 5-5
on page 5-26.
"/usr/tandem/nsjms/T1251V30_30SEP2003_V30:&
/usr/tandem/nsjms/T1251V30_30SEP2003_V30/lib/nsjms.jar:&
/usr/tandem/nsjms/T1251V30_30SEP2003_V30/lib/jndi.jar:&
/usr/tandem/nsjms/T1251V30_30SEP2003_V30/lib/providerutil.jar:&
/usr/tandem/nsjms/T1251V30_30SEP2003_V30/lib/fscontext.jar",&
"com.tandem.nsjms.bridge.Bridge",&
"-pp","sampl",&
"-sc","qtoq",&
"-sd","queue0",&
"-sjd","queue0",&
"-sjicf","com.sun.jndi.fscontext.RefFSContextFactory",&
"-sjurl","file:////usr/tandem/nsjms/T1251V30_30SEP2003_V30
/jndi_object_store",&
"-sjcf","QueueConnectionFactory",&
"-td","queue1",&
"-tjd","queue1",&
"-tjicf","com.sun.jndi.fscontext.RefFSContextFactory",&
"-tjurl","file:////usr/tandem/nsjms/T1251V30_30SEP2003_V30
/jndi_object_store",&
"-tjcf","QueueConnectionFactory",&
"-d","N",&
"-s","null",&
"-bs","1"
set server stdout $PWD/sampl.log
set server stderr $PWD/sampl.log
set server maxservers 1
set server numstatic 1
add server qtoq
start server qtoq
eof
grep -q -i error $PWD/sampl.pathmon.log
if [[ $? -eq 0 ]] then
print "Error in starting pathcom, refer to pathmon.log for information"
else
print "Messaging Bridge environment was started."
print "Individual servers can take some time to activate."
fi
Example 5-3. Start Script Sample (page 3 of 3)