United States Department of Agriculture

Office of the Chief Information Officer

³Partnering for Success´
www.ocio.usda.gov/nitc

United States Department Of Agriculture

Office of the Chief Information Officer

WebSphere MQSeries
National Information Technology Center

There are two methods for applications to communicate: Fire and Forget Request/Response . This form of communication is referred to as commercial messaging.Messaging Fundamentals WebSphere MQSeries enables application programs to communicate with each other using messages and queues.

Application Communications Fire and Forget Put Record Get Record Record Queue Program A Program B Request/Response Put Record Get Record Record Queue Program A Get Record Processed Message Program B Reply to Queue Put Record Processed Message .

Headers typically contain elements like: ‡ Unique Message Id ‡ Routing information ‡ Message format The following are examples of the data part of a message: ‡ A record from an indexed or flat file ‡ A row from a DB2 table ‡ Individual columns from DB2 tables ‡ Multiple rows or records .What is a message? Message = Header(s) + Application Data Header « Application Data A message consists of a header and the attached application data.

This figure shows how messaging works in the simple case where the program putting the message and program getting the message are both on the same computer and connected to the same queue manager. .What is a Queue? A queue is simply a place to put data.

APPLICATIONS ANYWHERE LOG/AUDIT TRAIL QUEUE MANAGER PUT DATA GET DATA QUEUES COMMUNICATIONS ACF2/SECURITY TCP/IP . The queue manager logs all activity with each individual queue thus creating an audit trail. Multiple queue managers can coexist with each other. The limiting factor is the availability of system resources.What is Queue Manager? A queue manager is the subsystem software which controls access to the individual queues assigned to it.

2000  Windows  OS/2  Open VMS  Tandem NSK  VSE  Digital UNIX  Compaq Tru64 UNIX .Supported Platforms WebSphere MQSeries supports the following platforms:        OS/390 MVS OS/390 Linux AIX HP-UX Solaris:Intel & SPARC OS/400 Windows NT.

0 offers improved support for Secure Sockets Layer (SSL). .Security Version 6. the Internet standard for secure communication.

Application Programming Interfaces (API) .

COM. COBOL. LotusScript. C++. moves message handling logic into the middleware Policy name "How" Service name "Where³ Available for C. Java. C++. VisualBasic .WebSphere MQSeries Programming APIs Application Messaging Interface (AMI) AMI High level of abstraction. C. Java Java Message Service (JMS) JMS Emerging Java standard underpinned by WebSphere MQSeries Abstracts MQSeries details Interface for J2EE/WebSphere Message Queue Interface (MQI) MQI Native calls to provided functions are available in the following languages: 390 Assembler. PL/1. COBOL.

AMI.WebSphere MQSeries Programming APIs Message Queues MQI AMI JMS Applications MQI. JMS all interoperate .

Bridges/Adapters/Connectors .

ERP. transaction managers .MQSeries Adapters  From IBM ± CICS Bridges.. . message brokers.  From 75 other vendors  More than 150 adapters ± databases. IMS Bridge. CRM.. SAP Bridge. packaged ± applications. Notes Bridge. MOM.

Tangent.) Internet Gateway Workgroup Eg.NET MQSeries AD tools access Cool: Gen... AIX. Progress. OS2 Backend Systems Unix CICS DB2 IMS MVS.. Delphi..Netsoft. VB. BaaN ERP plus Integrator OLE-enabled Environment (Powerbuilder. VSE SAP R3 Bridge J2EE CICS .. VisualAge.. Lotus Notes Java Applets Desktop Clients Web Client Mobile Clients .MQSeries Adapters AS/400. Seer.

Message Brokers .

The Message Flow A Message Flow is: ‡ A sequence of operations on a message ‡ Dependant upon message content Process Input Output .

Price. Customer Id. Trader Id. Trader Id Application B outputs: Customer Id. Quantity. Account Id. Date Application 3 inputs: Date.Message Brokering Example Application A outputs: Account Id. Customer Id. Customer Id Application 1 inputs: Date. Price. Quantity. Quantity . Price. Quantity. Price. Trader Id Parse Rules Transform Application 2 inputs: Date. Account Id. Date. Quantity. Price. Trader Id.

Publish/Subscribe Subscriber Subscriber Publisher Publisher Publish Data Publish Data Subscriber Subscriber Publisher Publisher Pub/Sub Pub/Sub Broker Broker (List Server) Subscribe to Published Data Subscriber Subscriber WebSphere MQSeries Message/Queuing .

anywhere in the network Transactional messaging support for coordinated updating of multiple data sources Trusted.parallelism Assured delivery of information .Customer Benefits of MQSeries        Wide selection of available platforms Network is transparent to the application programmer Applications can be changed quickly and easily in response to changing business needs Applications run in an asynchronous manner . dependable for mission critical applications .

usda.NITC Contact ³Partnering for Success´ is Our Business www.usda.gov Business Contact: 888-USE-NITC .ocio.gov/nitc NITCMQSeries@nitckc.