Вы находитесь на странице: 1из 63

IBM WebSphere MQ (MQSeries)

Torry Harris Business Solutions

Schedule
Day 1 WebSphere MQ Introduction and

Administration Overview
Days 2,3,4 WebSphere MQ Application

Programming
Day 5 WebSphere MQ Application

Programming with Java


Torry Harris Business Solutions
2

Day 1- Session 1
Styles of communication

Introduction to Messaging and Queuing


Types of Messaging Introduction to IBM WebSphere MQ Advantages of WebSphere MQ MQSeries Components WebSphere MQ (Client & Server)

Types of Queues
Torry Harris Business Solutions
3

Styles of Communication

Conversational communication Socket programs


Call and Return style Remote procedure call (RPC) Messaging & queuing

Torry Harris Business Solutions

Introduction to Messaging & Queuing

Messaging Programs communicate by exchanging messages Queuing Messages are stored before forwarding

Torry Harris Business Solutions

Types of Messaging

Synchronous Messaging
Asynchronous messaging

Torry Harris Business Solutions

How Message Queuing Works?

Program A communicating with Program B

Torry Harris Business Solutions

Advantages of Messaging & Queuing

No logical connection between programs


Different speeds & times Different locations Scalability and performance Programmers can concentrate on business

logic

Torry Harris Business Solutions

Introduction to IBM WebSphere MQ

A M-O-M software enabling communication

between applications
Provides Once-only Assured Asynchronous delivery of Messages

Torry Harris Business Solutions

Advantages of IBM WebSphere

Simple and single multi platform API


Faster application development Connecting variety of platforms

Torry Harris Business Solutions

10

Components of IBM WebSphere MQ

WebSphere MQ Server
WebSphere MQ Client

Torry Harris Business Solutions

11

Platform Availability

Torry Harris Business Solutions

12

WebSphere MQ API Support


C

C++
COBOL Visual Basic

JAVA (native and JMS)


PL/I (Programming Language One) System 390 Assembler Tandem TAL (Transaction Application Language)

Torry Harris Business Solutions

13

WebSphere MQ

WebSphere MQ Server Core of the messaging & queuing infrastructure Achieved by queue manager
WebSphere MQ Client Connects to the server to Put/Get messages

Torry Harris Business Solutions

14

Link Between MQ Server & Client

Torry Harris Business Solutions

15

Clients on Different Platforms

Torry Harris Business Solutions

16

Queue Manager
Owns and Manages objects
Queues
Channels Namelists

Distribution lists
Process definition, Storage classes

Provides messaging and queuing services Facilitates message transfer Coordinates transactions
Torry Harris Business Solutions
17

Queues

What is a queue? Data structure to hold the message temporarily Different types of queues Local queue Remote queue

Torry Harris Business Solutions

18

Queues
Local queue

Event Queue Initiation Queue Transmission Queue Reply-to-Queue Dead letter Queue Alias Queue Dead letter Queue Command Queue Model Queue Cluster Queue
Torry Harris Business Solutions
19

Message
Message Descriptor Contains control information Some attributes are

Version Message Identifier Persistence of the message Message life time Priority of the message Return address name Sender Application name

Torry Harris Business Solutions

20

Components of a Message
Application data
Private to the applications Not meaningful to the queue manager

Torry Harris Business Solutions

21

Torry Harris Business Solutions

22

Message Types

Datagram Request Reply Report

Torry Harris Business Solutions

23

Process
Process Definition Associated with the queue to be triggered Process Object Consists of the program to be triggered

Torry Harris Business Solutions

24

Namelists
Contains a list of cluster names or queue

names
Supported on MQSeries for OS/390 and

MQSeries Version 5.1 products only

Torry Harris Business Solutions

25

Channels
Provides a communication path Act as agents for exchanging messages Facilitates distributed queuing

Torry Harris Business Solutions

26

Types of Channels
MQI channels
Message channels

Torry Harris Business Solutions

27

End of Session 1 of Day 1

Torry Harris Business Solutions

Day 1 Session 2

Torry Harris Business Solutions

Recap of Session 1
Styles of communication

Introduction to Messaging and Queuing


Types of Messaging Introduction to IBM WebSphere MQ Series Advantages of MQ Series MQ Series Components WebSphere MQ Series (Client & Server)

Types of Queues
Torry Harris Business Solutions
30

Session 2

Types of channels
Advanced Topics - Channel Exits System administration Introduction Transactional support Introduction Security Introduction Administration of MQSeries Objects

Torry Harris Business Solutions

31

MQI Channels

Message queue interface (MQI) channel


Bi-directional Connects WebSphere MQSeries client to a

queue manager

Torry Harris Business Solutions

32

Message Channel

Transfer messages between queue

managers
Unidirectional
Work in pairs

Torry Harris Business Solutions

33

Types of MQI Channels


Client connection channel Defined at the MQ server end Is a part of client connection table

Server-connection channel Defined at the MQ server

Torry Harris Business Solutions

34

MQI Channel Summary

Torry Harris Business Solutions

35

Message Channels
Sender

Receiver
Server Requester Cluster-Sender Cluster-Receiver

Torry Harris Business Solutions

36

Sender - Receiver Channel Pair

Torry Harris Business Solutions

37

Requester - Server Channel Pairs

Torry Harris Business Solutions

38

Requester - Sender Channel Pairs

Torry Harris Business Solutions

39

Server Receiver Channel Pair

Possible if fully qualified server


Channel startup initiated at the server end of

the link

Torry Harris Business Solutions

40

Cluster - Sender/receiver Channel

Torry Harris Business Solutions

41

Torry Harris Business Solutions

42

Advanced Topics Channel Exits


Channel exits Used for Additional processing Run before messages are sent

Torry Harris Business Solutions

43

Types of Channel Exits


Security exit

Message exit
Send and receive exits Message-retry exit

Channel auto-definition exit


Transport-retry exit

Torry Harris Business Solutions

44

Channel Exits
Security exit Used for Authorization checking Message exit Additional processing on messages (Encryption)

Send & Receive exits Data compression and decompression on split messages

Torry Harris Business Solutions

45

Channel Exits (cont)


Message retry exit Problem when putting message Channel auto-definition exit Modify the default definition for auto-defined channels Transport-retry exit Suspend data when communication is not possible

Torry Harris Business Solutions

46

Channel Exit - Summary

Torry Harris Business Solutions

47

Application Programming

Provides APIs to Connect to queue manager Get/Set properties Put & Get messages Close the connection Commit/Rollback transactions

Torry Harris Business Solutions

48

Torry Harris Business Solutions

49

System Administration
MQSeries Installation. Administering MQSeries objects
Local administration remote administration

Torry Harris Business Solutions

50

System Administration
Performing administrative tasks using
Control commands MQSC commands PCF commands

Torry Harris Business Solutions

51

System Administration
Control commands Queue manager commands
Channel commands Utility commands (like runmqsc)

Torry Harris Business Solutions

52

System Administration

MQSC commands Verification mode Commands to local queue manager Commands to remote queue manager

Torry Harris Business Solutions

53

System Administration

PCF (Programmable Command Format) Executed through a program Centralize & automate administration tasks

Torry Harris Business Solutions

54

Transaction Support

Single phase commit Queue manager resources updated Two phase commit Queue manager co-ordination External co-ordination

Torry Harris Business Solutions

55

Transactional Support
XA-Compliant Databases supported DB2 (5.0 onwards) Oracle (7.3 onwards) Sybase (11.1 onwards) Restrictions on database co-ordination NOT supported in a MQI Client application NOT possible for 2nd queue manager to participate in the Global unit of work
Torry Harris Business Solutions
56

Transactional Support

Enabling database co-ordination


Create a XA switch load file Define database manager in configuration file

(Re) Start the queue manager

Torry Harris Business Solutions

57

Transactional Support

Torry Harris Business Solutions

58

Security

Controls user access based on Administration authorization MQI authorization Context authorization Different access control for MVS

Torry Harris Business Solutions

59

Security

Security provided by the Operating system


MCA authentication (User specified security

exit)

Torry Harris Business Solutions

60

Security

Torry Harris Business Solutions

61

Administration of MQSeries Objects - Demo Using MQExplorer

Torry Harris Business Solutions

Summary
Introduction to Messaging & Queuing

WebSphere MQSeries Server & Client MQSeries Objects Advanced Topics - Channel Exits System administration - Introduction Transactional support Introduction Security - Introduction

Torry Harris Business Solutions

63

Вам также может понравиться