The JMS sample contains a server definition which includes the features for creating the messaging engine (JMSServer-1.0), MDB feature (mdb-3.1), JMS Client feature (JMSMessaging-1.1). It also contains a very simple JMS application, JMSSample.war, which contains couple of servlet for perfoming Point to Point and Publish/Subscribe messaging.The JMS Servlet provides means to send/receive messages to a queue and also publish and subscribe messages from a Topic. For each of the function, servlet logs the appropriate logs into the console.log.
This sample can be installed onto runtime versions 8.5.5.0 and later.
To run the JMSApp application:
java -jar JMSSampleServer.jar
bin
directory in the Liberty profile installation:
server run JMSSampleServer
CWWKZ0001I: Application JMSApp started in XX.XX seconds.
For Point to Point (P2P) - http://localhost:9124/JMSApp/JMSSampleP2P?ACTION=SendMessage
For Publish Subscribe (Pub/Sub) - http://localhost:9124/JMSApp/JMSSamplePubSub?ACTION=NonDurableSubscriber(where 9124 is the HTTP endpoint on which the JMSSample servlet is running).
If you want to know the list of supported actions for P2P enter http://localhost:9124/JMSApp/JMSSampleP2P?ACTION=ListActions for PubSub enter http://localhost:9124/JMSApp/JMSSamplePubSub?ACTION=ListActions.
The JMSApp.war
file contains the source and binaries for the application, and can be
used to import it to Eclipse.
For further information and resources for developers using IBM WebSphere Application Server, please visit wasdev.net.