Name: sample.jms.server
Owner: WASdev
Description: Liberty JMS server sample
Created: 2015-05-22 13:36:15.0
Updated: 2017-07-07 12:09:06.0
Pushed: 2017-08-04 10:08:47.0
Size: 27
Language: Java
GitHub Committers
User | Most Recent Commit | # Commits |
---|
Other Committers
User | Most Recent Commit | # Commits |
---|
Liberty JMS 1.1 sample
This sample project contains a simple JMS Servlet application called JMSSample. JMSSample listens for HTTP requests sent to localhost:9124/jms11-JMSSample
, and responds with various actions.
There are 2 main Servlets that are contained:
P2P : Point-to-Point Messaging uses JMS Queue to send and receive messages. It also contains MDB message send and response.
PubSub : Publish-and-Subscribe Messaging uses JMS topic to send and receive messages.
Note: The Server and Client versions of the sample are currently the same except for the server.xml. There is a sample client server.xml in the wlp directory structure.
This project can be build with Apache Maven. The project uses Liberty Maven Plug-in to automatically download and install Liberty profile runtime from the Liberty repository. Liberty Maven Plug-in is also used to create, configure, and run the application on the Liberty server.
Use the following steps to run the application with Maven:
Set the IBM_LIBERTY_LICENSE
environment property with the license code found in the Liberty license file. See the following instructions on obtaining the license code.
port IBM_LIBERTY_LICENSE=<license code>
Execute full Maven build. This will cause Liberty Maven Plug-in to download and install Liberty profile server.
n clean install
Once the server is running, the Queue application actions will be available under :
http://localhost:9124/jms11-JMSSample/JMSSampleP2P?ACTION=listAction.
the Topic application actions will be available under :
http://localhost:9124/jms11-JMSSample/JMSSamplePubSub?ACTION=listAction.
To stop the Liberty server, execute the following (Note: If you would like to re-install Liberty, first you must stop the Liberty server with this command, otherwise installation will fail)
n liberty:stop-server
To start the Liberty server, execute the following (Note: To reflect the changes in server.xml, please edit the src/main/wlp/server.xml, then run start-server. Any changes made in target/liberty/wlp/usr/servers/defaultServer/server.xml will be overwritten once start-server is executed)
n liberty:start-server
© Copyright IBM Corporation 2015.
nsed under the Apache License, Version 2.0 (the "License");
may not use this file except in compliance with the License.
may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
ss required by applicable law or agreed to in writing, software
ributed under the License is distributed on an "AS IS" BASIS,
OUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
the License for the specific language governing permissions and
tations under the License.