This is archived documentation for an older version of Nirvana (v2.0). Please refer to documentation for the latest version if required.

JMSTest

This example (JMSTest.Java) demonstrates how to publish to a JMS Topic. Before using this example with Nirvana you will need to create a topic factory and topic using JMSAdmin.

Assuming you have used the default options with JMSAdmin and run the JMSAdmin example run the following command.

Java -DPRINCIPAL=anon -DPASSWORD=anon -DCONTEXT_FACTORY=com.sun.jndi.fscontext.RefFSContextFactory -DPROVIDER_URL=file:.com.pcbsys.Nirvana.nSpace.JMSTest vegetta rates

This will connect you to the rates topic on the via vegatta. Each message you enter will be published in a TextMessage when the return key is pressed.