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-11
NSJMS Directory Structure
To test the Publish and Subscribe sample, execute these commands:
In the first shell:
In the second shell:
Your Publish and Subscribe sample output will be similar to:
NSJMS Directory Structure
After completing the product installation, the /usr/tandem/nsjms/version
directory contains these files and subdirectories. Included are detailed descriptions of
the properties contained in the nsjms.properties file and the jndi.properties
file:
•
nsjms.properties - Contains these properties that are used to configure
NSJMS:
OSH: cd examples
OSH: java SimpleSender -queue Q1 -count 5
OSH: Publishing: Sending message 0
OSH: Publishing: Sending message 1
OSH: Publishing: Sending message 2
OSH: Publishing: Sending message 3
OSH: Publishing: Sending message 4
OSH: Finished Publishing 5 messages
OSH: cd examples
OSH: java SimpleConsumer -topic T1 -ackmode 1
OSH: cd examples
OSH: java SimplePublisher -topic T1 -count 5
OSH: cd examples
OSH: java SimpleConsumer -topic T1 -ackmode 1
Message listener has been set
OSH: Received message #1: Publishing this message 0
OSH: Received message #2: Publishing this message 1
OSH: Received message #3: Publishing this message 2
OSH: Received message #4: Publishing this message 3
OSH: Received message #5: Publishing this message 4
OSH: cd examples
OSH: java SimplePublisher -topic T1 -count 5
OSH: Finished publishing 5 messages
Note. All properties must appear in the properties file in a PropertyKey=Value format.
For example, Logger.type=FileLogger.