Upload
hoangnguyet
View
222
Download
0
Embed Size (px)
Citation preview
Tony SkinnerTransaction Processing Consultant
IBM Certified System Designer [email protected]
L I G H T Y E A R
BusinessPartner
CICS Business Event Publisher October 2003
CICS
AD Tools
CICS
AD ToolsIntroduction
The majority of IBM's CICS customers are also MQSeries users.
MQSeries is recognized as an invaluable foundation for EAI projects.
The best technical solution for bringing these two products together is by changing the CICS programs to include MQSeries function calls.
But often opening up old CICS applications to add MQSeries calls takes too long, is too expensive, or is too risky to be justified.
As a result, lots of business value in old applications remains dormant.
Are there easier ways to expose legacy application activitiesand use them to drive new business opportunities?
TechTalk CICS Business Event Publisher 8 October 2003
Tony Skinner Lightyear Consulting Page 1-2
CICS
AD Tools
Connection
MQSeries-CICS Adapter
MQSeriesCICSAdapter
MQI
Transaction
Program
Call MQPUT...
Queue Manager
CKQC
CKTI
controls
starts
Q'n'Q2
Q1
CICS
AD ToolsMQSeries-CICS Adapter
Three main functions:1. CICS program access to the MQSeries API, the MQI.2. Trigger Monitor transaction CKTI, which can launch CICS.
transactions automatically when messages appear on queues.3. Transaction CKQC, which enables an operator to control
the Trigger Monitors and the connection between the CICS region and an MQSeries Queue Manager.
Using the Adapter, any CICS program can access MQSeries Queue Managers and Queues, and can produce and consume messages.
The CICS programs must include MQI function calls; they can be new programs, or old ones that have been changed.
TechTalk CICS Business Event Publisher 8 October 2003
Tony Skinner Lightyear Consulting Page 3-4
CICS
AD ToolsMQSeries-CICS Bridge - 1
CICS TS
DPL Bridge
Existing, unchanged CICS Program:::EXEC CICS RETURN...
Any program
Call MQPUT...
Any platform
RequestQ
ReplyQ
1. Call MQGET...2. EXEC CICS LINK...
3. Call MQPUT...
MQMD Program Name COMMAREA(MQCIH)Message format:
CICS
AD ToolsDPL Program
Map between MQ Request/Reply and CICS Distributed Program LINK
Accept properly formatted MQSeries Request messages
Automatically run a CICS program named in the message
Pass data from Request message in input COMMAREA
Return output COMMAREA data in Reply message
Multiple programs can be run within a single logical unit-of-work
Existing CICS programs can run unchanged
TechTalk CICS Business Event Publisher 8 October 2003
Tony Skinner Lightyear Consulting Page 5-6
CICS
AD ToolsMQSeries-CICS Bridge - 2
CICS TS
3270 Bridge
Existing, unchangedCICS BMS transaction:EXEC CICS RECEIVE...::EXEC CICS SEND...:
Any program
Call MQPUT...
Any platform
RequestQ
ReplyQ
1. Call MQGET Browse...2. EXEC CICS START...
3. Call MQPUT...
MQMD BRMQ data elements corresponding to ADSMQCIHMessage format:
CICS
AD Tools3270 Transaction
Map between MQ Request/Reply and CICS 3270/BMS Transaction
Accept properly formatted MQSeries Request messages
Automatically run a non-conversational, pseudo-conversational, or conversational CICS transaction named in the MQCIH header
Intercept CICS BMS and Terminal Control input commands,and pass Request message data as Application Data Structure
Intercept CICS BMS and Terminal Control output commands,and return ADS response data in Reply message
Transactions can comprise multiple logical units-of-work
Existing CICS transactions can run unchanged
TechTalk CICS Business Event Publisher 8 October 2003
Tony Skinner Lightyear Consulting Page 7-8
CICS
AD ToolsCICS Business Event Publisher
Existing, unchangedCICS applications
Existing, unchangedCICS applications
Existing, unchangedCICS applications
CICS TS
Any program
Call MQGET...
Any platform
MQMD data elements associated with monitored event (CBEP hdr)
Q'n'Q2
Q1
Message format:
Existing, unchangedCICS applications
Existing, unchangedCICS applications
Existing, unchangedCICS applications
CICS TS
CICS Business EventPublisher
monitors
CICS
AD Tools
Existing CICS applications can run unchanged
What is CBEP?
Enable existing CICS applications to generate MQSeries messages
Define rules that identify significant application events
Automatically monitor internal application functions
On specified events, create message(s) containing relevant data
Deliver the message(s) to appropriate queue(s)
Include data integrity, and workload balancing and scalability options, and application development and system administration support
TechTalk CICS Business Event Publisher 8 October 2003
Tony Skinner Lightyear Consulting Page 9-10
CICS
AD Tools
z/OSUnix
SAP/R3Purchasing & Warehouse
Management
SiebelCustomer Relation
Management
CICS LegacyOrder Entry
&Inventory Control
Overnight batch database scan
and FTP
Windows
file tr
ansfer
file transfer
3270
VSAM
DB2
Oracle
Example
CICS
AD ToolsRequirement
Given a legacy CICS order and inventory management application, new SAP/R3 Warehousing & Purchasing applications and Siebel CRM
Notify sales representatives
When each new order worth >$n,nnn is booked
When an existing order is changed or canceled
Notify buyers:
When on-hand balance of an inventory item is reduced to 0
and do it in real time!
TechTalk CICS Business Event Publisher 8 October 2003
Tony Skinner Lightyear Consulting Page 11-12
CICS
AD ToolsWhere do we start with CBEP?
1. Install and configure the software, and start the CBEP system
2. Define some Rules based on activities and data in the CICS programs
3. Specify content, layout, and destinations for the resulting messages
4. Include the Rules in a Rule Group
5. Add the Rule Group to a Group List
6. Activate the Group List in CBEP
7. Wait for the messages to pop out...
CICS
AD ToolsCreate a Rule
Rules
Rule Groups
TechTalk CICS Business Event Publisher 8 October 2003
Tony Skinner Lightyear Consulting Page 13-14
CICS
AD ToolsSelect Rule Type
CICS
AD ToolsSpecify Selection Criteria
TechTalk CICS Business Event Publisher 8 October 2003
Tony Skinner Lightyear Consulting Page 15-16
CICS
AD ToolsAdvanced Selection Criteria...
CICS
AD Tools...Advanced Selection Criteria...
TechTalk CICS Business Event Publisher 8 October 2003
Tony Skinner Lightyear Consulting Page 17-18
CICS
AD Tools...Advanced Selection Criteria
CICS
AD ToolsSpecify Destination Queue
MQPMO
MQMD
QueueName
(Queue ManagerName)
TechTalk CICS Business Event Publisher 8 October 2003
Tony Skinner Lightyear Consulting Page 19-20
CICS
AD ToolsSet Message Descriptor (MQMD)
CICS
AD ToolsSet Put Message Options (MQPMO)
TechTalk CICS Business Event Publisher 8 October 2003
Tony Skinner Lightyear Consulting Page 21-22
CICS
AD ToolsSpecify Message Layout & Delivery
≤128 data elements
for example:File or TS record
for example:cancel event oroverride layout
CICS
AD ToolsSet Return Options
throughputvs. integrity
error handling
TechTalk CICS Business Event Publisher 8 October 2003
Tony Skinner Lightyear Consulting Page 23-24
CICS
AD ToolsCreate a Group List
Group Lists
CICS
AD ToolsRetrieve Group names
Groups fromhost system
Local groupson workstation
TechTalk CICS Business Event Publisher 8 October 2003
Tony Skinner Lightyear Consulting Page 25-26
CICS
AD ToolsPopulate Group List
Add toGroup List
CICS
AD Tools
z/OSUnix
SAP/R3Purchasing & Warehouse
Management
SiebelCustomer Relation
Management
CICS LegacyOrder Entry
&Inventory Control
Windows
3270
VSAM
DB2
Oracle
Solution
QStock-out
QHi-value
mon
itors
CICSBusiness
EvenPublisher
TechTalk CICS Business Event Publisher 8 October 2003
Tony Skinner Lightyear Consulting Page 27-28
CICS
AD ToolsArchitecture
Q'n'Q2
Q1
CBEPGLUEs/TRUEs
CICS TS
CICS Business Event Publisher MQSeries
CBEPcommandprocessor
3270z/OSconsole
Windows 2K or XP
Message Server
RULEFILE
Data Space ServerCICSDataSpace
Rules DBDataSpace
SecureAdministration
Client
CBMPARMS
DATAMAPS
TSOISPF
z/OS
CICS
AD ToolsCBEP Components
Data Space Server at least 1 per z/OS instance(each can support multiple Message Servers)
Message Server 1 or more per z/OS instance(connects to one Data Space Server)
Main task & console operator interfaceSet subtasks 1 or more per Event SourceQtasks 1 or more per Set taskQMGr tasks 1 per connected local QMgr
CICS Event Source Connector(connects to one Message Server and its Data Space Server)
Command ProcessorGLUEsEvent Processor
Rules Database RULEFILE & DATAMAPS can be shared by Message ServersWorkstation Administration Client & ListenerISPF-based COBOL copybook conversion utility
TechTalk CICS Business Event Publisher 8 October 2003
Tony Skinner Lightyear Consulting Page 29-30
CICS
AD ToolsSummary
CICS Business Event Publisher makes it quick and easy for you to extract value from existing CICS applications by:
automatically notifying other applications about significant business activities
integrating them with other applications, without changing them
feeding relevant, real-time data to your message broker
And it does so with comprehensive application development, system management, administration, and supporting functions, in a high-integrity, scale-able, and secure environment.
CICS
AD Tools
CICS Services available from: Lightyear Consulting Ltd.Classic:
Tools analysisOn-site education Installation servicesMigration servicesTuning services
Modern:Integration with MQ and/or WebSphere servicesJava development skillsEAB/CICS wrappering skillsCobol/CICS to Java rewrite skillsCICS web enablement optionse-business profiling servicesCICS + Java Quick Start Workshop
IBM Software Sales:CICS Tools (OTC SW - New IBM Business Partner Program)Financing (i.e. turn OTC into MLC)
Palo Alto - Calgary - Laguna Beach - Scottsdale - Austin512-329-9081www.lightyr.com
BusinessPartner
L I G H T Y E A R
TechTalk CICS Business Event Publisher 8 October 2003
Tony Skinner Lightyear Consulting Page 31-32