Overview
The OpenJMS code examples demonstrate how to write simple applications
using JMS.
Building the examplesTo build the example programs on Windows, open a command prompt and type: cd %OPENJMS_HOME% build.bat On Unix: cd $OPENJMS_HOME build.sh Running the examplesRunning the SimpleConsumer
To run the
runconsumer -topic topic1 On Unix: runconsumer.sh -topic topic1 This will connect to the OpenJMS server, subscribe to the topic 'topic1', and wait for messages. Running the SimplePublisher
To run the
runpublisher -topic topic1 On Unix: runpublisher.sh -topic topic1
This will connect to the OpenJMS server, and publish 10 TextMessage
messages to the topic 'topic1'.
Running the SimpleReceiver
To run the
runreceiver -queue queue1 On Unix: runreceiver.sh -queue queue1
This will connect to the OpenJMS server, construct a
Running the SimpleSender
To run the
runsender -queue queue1 On Unix: runsender.sh -queue queue1
This will connect to the OpenJMS server, and send 10 BytesMessage
messages to the queue 'queue1'.
|