NonStop JMS User's Manual (NonStop JMS 2.0+)
NSJMS Installation and Configuration
NonStop Server for Java Message Service User’s Manual—522356-002
2-9
Install and Configure NSJMS
9. Create NSJMS SQL Tables
Use this command to create the NSJMS SQL tables. For example:
10. Update the Property Files
a. Using an editor of your choice, update the Database.volsubvol property in
the nsjms.properties file with the location of the NSJMS SQL tables from
Step 8 on page 2-8. For example:
Database.volsubvol=$volume.subvol
The nsjms.properties file is described on page 2-11 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 2-15 and contains values
that are necessary to use a simple JNDI file service provider on the NonStop
Kernel operating system.
The nsjms.properties file and the jndi.properties file contain default key
and value combinations and in most cases require minimal or no changes.
11. Add JNDI and Create a Sample Queue and Topic
To add the JNDI and create a sample queue and topic, execute these commands:
OSH: gtacl -p sqlci < creatsql
Note. Database tables, by default, will 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 on using the FORMAT2ENABLED attribute within the
CREATE TABLE statement, see the Compaq NonStop 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