NonStop JMS User's Manual (H06.03+, J06.03+, NonStop JMS 3.0+)
NSJMS Installation and Configuration for TNS/E
NonStop Server for Java Message Service User’s Manual—522356-006
3-8
Install and Configure NSJMS
9. Update the Property Files:
a. Using an editor of your choice, update these properties in the
nsjms.properties file:
1. Set the Deadmsg.deletecount property value to 100. For example:
Deadmsg.deletecount=100
2. Set the Database.volsubvol property to the location of the NSJMS
SQL tables from Step 7 on page 3-7. For example:
Database.volsubvol=$volume.subvol
The nsjms.properties file is described on page 3-10 and contains
properties that are used to configure NSJMS. The property values are read by
the NSJMS implementation once during startup.
b. If the JNDI objects will be stored in a directory other than the default directory
(file:////usr/tandem/nsjms/version/jndi_object_store), using an
editor of your choice, update the java.naming.provider.url property in
the jndi.properties file with the path for the new directory.
The jndi.properties file is described on page 3-14 and contains values
that are necessary to use a simple JNDI file service provider on the operating
system.
The nsjms.properties file and the jndi.properties file contain default key
and value combinations and require few or no changes.
10. Add the JNDI and create a sample queue and topic by using these commands:
Note. Database tables, by default, support a maximum of 2 gigabytes (GB) on each
partition. If larger partitions are required, use the FORMAT2ENABLED attribute when
creating the tables. For information about using the FORMAT2ENABLED attribute within
the CREATE TABLE statement, see the SQL/MP Reference Manual.
Note. nsjms.properties and jndi.properties are loaded from directories in the
CLASSPATH. You can copy the property files to other directories and edit them for
different users or applications. However, you then must update CLASSPATH to include the
directories containing the edited files.
OSH: cd /usr/tandem/nsjms/version
OSH: java com.tandem.nsjms.admin.JmsAdmin
NSJMS Admin started.
nsjms-> add jndi
Jndi Initialized
nsjms-> add queue Q1
Destination added.
nsjms-> add topic T1
Destination added.
nsjms-> exit