IBM Support

Developing and testing an MDB using RAD 7.5, WebSphere Application Server V7 and MQ V7 as JMS Provider

White Papers


Abstract

Demonstrate the steps to develop and test a Message Driven Bean (MDB) using Rational Application Developer (RAD) 7.5 and WebSphere Application Server V7, while using WebSphere MQ V7 as Java ™ Messaging Service (JMS) Provider.

Content

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

This demonstrates the steps required to develop and test a Message Driven Bean (MDB) using Rational Application Developer (RAD) 7.5 and WebSphere Application Server V7, while using WebSphere MQ V7 as the Java Messaging Service (JMS) Provider.



The testing scenario shows how the Listener Port for WebSphere Application Server gets a message from an MQ Queue (Point to Point) and passes it to the MDB, which displays the contents of the text message. This MDB is a simple but functional application.

The following file (available with this techdoc) includes the MDB as it was developed, tested and exported as described in this document:
EAR file with MDB: SampleMDBEJB.ear

The document is provided in the attached file: Developing_and_testing_MDB_on_RAD7.doc
This document shows all the screen shots needed for beginners.
This document has the following chapters:
1: RAD 7.5 development of the MDB
2: RAD 7.5 testing of the MDB using WebSphere Application Server 7


Related techdoc
It is necessary to configure MQ and WebSphere Application Server with the objects that are used in this scenario. Consult the following techdoc for details:

Using WebSphere MQ V7 as JMS Provider for WebSphere Application Server V7, V8.0 and V8.5
Chapter 1: MQ V7 configuration: queue and topic
Chapter 2: WebSphere Application Server V7 configuration: JNDI objects

Requisite software
The following software was used:
  • SUSE Linux Enterprise Server (SLES) 9:
  • Rational Application Developer 7.5
  • WebSphere Application Server 7.0.0.5
  • WebSphere MQ 7.0.0.2
  • Firefox (also known as Mozilla)

Downloadable files
The following files are included as attachments to this techdoc:
  • Developing_and_testing_MDB_on_RAD7.pdf
  • EAR file with MDB: SampleMDBEJB.ear
  • Text file with code excerpt: onMessage.txt

DISCLAIMER: All source code and/or binaries attached to this document are referred to here as "the Program". IBM is not providing program services of any kind for the Program. IBM is providing the Program on an "AS IS" basis without warranty of any kind. IBM WILL NOT BE LIABLE FOR ANY ACTUAL, DIRECT, SPECIAL, INCIDENTAL, OR INDIRECT DAMAGES OR FOR ANY ECONOMIC CONSEQUENTIAL DAMAGES (INCLUDING LOST PROFITS OR SAVINGS), EVEN IF IBM, OR ITS RESELLER, HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.

Developing_and_testing_MDB_on_RAD7.pdf
File name: Developing_and_testing_MDB_on_RAD7.pdf
File size: 2 MB

SampleMDBEJB.ear
File name: SampleMDBEJB.ear
File size: 4 KB

onMessage.txt
File name: onMessage.txt
File size: 1 KB

[{"Product":{"code":"SSFKSJ","label":"WebSphere MQ"},"Business Unit":{"code":"BU053","label":"Cloud & Data Platform"},"Component":"Capability","Platform":[{"code":"PF002","label":"AIX"},{"code":"PF010","label":"HP-UX"},{"code":"PF016","label":"Linux"},{"code":"PF027","label":"Solaris"},{"code":"PF033","label":"Windows"}],"Version":"9.0;8.0;7.5;7.1;7.0","Edition":"","Line of Business":{"code":"LOB45","label":"Automation"}},{"Product":{"code":"SSEQTP","label":"WebSphere Application Server"},"Business Unit":{"code":"BU053","label":"Cloud & Data Platform"},"Component":"Java Message Service (JMS)","Platform":[{"code":"PF002","label":"AIX"},{"code":"PF010","label":"HP-UX"},{"code":"PF016","label":"Linux"},{"code":"PF027","label":"Solaris"}],"Version":"7.0","Edition":"","Line of Business":{"code":"LOB36","label":"IBM Automation"}},{"Product":{"code":"SSRTLW","label":"Rational Application Developer for WebSphere Software"},"Business Unit":{"code":"BU053","label":"Cloud & Data Platform"},"Component":"Application Deployment","Platform":[{"code":"PF033","label":"Windows"},{"code":"PF016","label":"Linux"}],"Version":"7.0","Edition":"","Line of Business":{"code":"LOB45","label":"Automation"}}]

Product Synonym

WebSphere MQ WMQ WebSphere Application Server WAS WSAS Rational Application Developer RAD

Document Information

Modified date:
17 June 2018

UID

swg27016507