WASdev/sample.jms.server

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

Homepage:

Size: 27

Language: Java

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

sample.jms11

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:

  1. P2P : Point-to-Point Messaging uses JMS Queue to send and receive messages. It also contains MDB message send and response.

  2. 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.

Running with Maven

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:

  1. 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>
    
  2. 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.

Useful Maven Commands
  1. 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
    
  2. 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
    

Notice

© Copyright IBM Corporation 2015.

License

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.

This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.