IBM Support

Using WebSphere MQ V7 as the JMS Provider for WebSphere Application Server V6

White paper


Demonstrate the use of a simple Message Driven Bean (MDB) in WebSphere Application Server (WAS) V6, which interacts with WebSphere MQ (WMQ) V7 as the JMS provider.


The document is provided in the attached file: WAS6_MQ7_JMS_Provider.pdf

This is intended to demonstrate the steps required to use a simple, but functional Message Driven Bean (MDB) in WebSphere Application Server V6, which interacts with WebSphere MQ V7 as the Java ™ Message Service (JMS) provider.

The MDB was created with Rational Application Developer (RAD) V7.5 and the Enterprise Archive File (EAR) file which contains the MDB can be downloaded from this techdoc.

The main scenario shows how to configure both WebSphere Application Server and MQ, in order for a MDB to get messages from MQ, using a WebSphere Application Server Listener Port from a Queue (Point to Point), using the Client transport type.

- Activation Specifications are not supported in WAS V6 for dealing with MQ.
- The main scenario uses the MQ jar files supplied with WAS V6.

Additional scenarios are provided:

- How to use MQ Topics to exploit Publish/Subscribe from MQ.
- How to use Bindings transport type and the local native MQ libraries

This document shows all the screen shots needed for beginners.

This document has the following chapters:

Chapter 1: MQ V7 configuration: queue and topic
Chapter 2: WebSphere Application Server V6 configuration: JNDI objects
Chapter 3: WebSphere Application Server V6 deployment and testing of MDB
Chapter 4: Additional scenarios: Topic, Using Bindings transport type

Related techdocs and articles

Requisite software
  • SUSE Linux Enterprise Server (SLES) 9:
  • WebSphere Application Server
  • WebSphere MQ
  • Firefox (also known as Mozilla)

Downloadable files
  • WAS6_MQ7_JMS_Provider.pdf
  • EAR file with MDB: SampleMDBEJB.ear
  • Text file with code excerpt: onMessage.txt

File name: WAS6_MQ7_JMS_Provider.pdf
File size: 1.0 MB

File name: SampleMDBEJB.ear
File size: 3.57 KB

File name: onMessage.txt
File size: 1 KB

Cross reference information
Segment Product Component Platform Version Edition
Application Servers WebSphere Application Server

Document information

More support for: WebSphere MQ

Software version: 7.0, 7.1, 7.5

Operating system(s): AIX, HP-UX, Linux, Solaris, Windows

Reference #: 7017733

Modified date: 04 February 2010