You are on page 1of 70

IMS and SOA

Deepak Kohli
IMS SOA Solutions Support
deepakk@us.ibm.com
Important Disclaimer

THE INFORMATION CONTAINED IN THIS PRESENTATION IS PROVIDED FOR


INFORMATIONAL PURPOSES ONLY.
WHILE EFFORTS WERE MADE TO VERIFY THE COMPLETENESS AND ACCURACY
OF THE INFORMATION CONTAINED IN THIS PRESENTATION, IT IS PROVIDED
“AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED.
IN ADDITION, THIS INFORMATION IS BASED ON IBM’S CURRENT PRODUCT
PLANS AND STRATEGY, WHICH ARE SUBJECT TO CHANGE BY IBM WITHOUT
NOTICE.
IBM SHALL NOT BE RESPONSIBLE FOR ANY DAMAGES ARISING OUT OF THE
USE OF, OR OTHERWISE RELATED TO, THIS PRESENTATION OR ANY OTHER
DOCUMENTATION.
NOTHING CONTAINED IN THIS PRESENTATION IS INTENDED TO, OR SHALL
HAVE THE EFFECT OF:
• CREATING ANY WARRANTY OR REPRESENTATION FROM IBM (OR ITS
AFFILIATES OR ITS OR THEIR SUPPLIERS AND/OR LICENSORS); OR
• ALTERING THE TERMS AND CONDITIONS OF THE APPLICABLE LICENSE
AGREEMENT GOVERNING THE USE OF IBM SOFTWARE.

p. 2
IMS Challenges
 Connectivity
– Need a way for both transactions and data to be exposed for
integration into enterprise applications
– Bi-directional access between IMS and distributed platforms
 Data Representation
– Need to be able to easily share IMS data despite language,
platform dependencies
– No change (or small change) to existing assets
 Application Development
– Mainframe skills (e.g. COBOL and PL/I) are becoming increasingly
harder to find
– Need to keep up with industry languages and support emerging
application development tools

p. 3
IMS SOA solutions
 Leverage on standards
– SOAP, HTTP, XML, XQuery, WS-*, Java EE/JCA

 SOA access to both IMS TM and DB

 Protect existing IMS assets and encourage new IMS development


– Leverage and reuse existing IMS transaction and data

 Ease integration with other products and appliances


– Microsoft .Net, SAP, etc...

 Integrate with other IBM solutions


– DataPower and WebSphere servers
– Rational and WebSphere tooling

Enable our customers to continue to leverage IMS as an integral part of their enterprise in the evolving
business world through the addition of support for complimentary standards surrounding IMS
connectivity, data representation, and application development

p. 4
Banking Center of Excellence

IMS SOA Integration Suite

IMS TM IMS DB
COBOL PL/I C Java MFS DLI Data XML Data

IMS DLIModel
Utility
IMS
SOAP
Gateway *IMS Open DB
IMS IMS TM IMS DB
MFS Web And Universal
Web 2.0 Resource Resource
Solutions JDBC Drivers
*IMS Connect
Solutions Adapter Adapter
API IMS XQuery
WebSphere

Service Oriented Architecture (SOA)


Web Services, SOAP, XML, Java, SCA/SDO, XQuery, Web 2.0
* - Denotes upcoming functions

5 5 © 2008 IBM Corporation


Access to IMS transactions
SOA solutions for IMS TM

p. 6
Architecture Foundation – IMS Connect
 A capability that provides connectivity support between TCP/IP
applications and IMS transactions – Integrated into IMS V9
– Configured on a z/OS server
 Benefits and Value
– Supports TCP/IP sockets access to IMS transactions and commands
– Provides a general purpose and structured interface
– Provides a strategic base for new IMS SOA technologies

IMSB
Web Server program
Cobol
COMTI
Assembler TCP/IP
Visual Basic
PowerBuilder
C/C++ IMS Connect IMSA
Java
Java Applet
...

BROWSER
Web VTAM
Websphere
Server

p. 7
Customer example – IMS Connect
 Who?
– One of the world’s largest package companies

 Situation
– Wanted to enable web access to their IMS systems to track
packages

 Solution
– Leveraged IMS Connect and created server programs that issued
direct TCP/IP calls send/receive messages from IMS
– 50 – 110 million transactions a day through IMS Connect

p. 8
IMS TM Resource Adapter
(previously known as IMS Connector for Java)
 WebSphere-based, Java Connector Architecture (JCA/J2C) Resource
Adapter that allows IMS connect to external systems
– Enable J2EE application, Web Service, SCA, SOA Composite
application/Choreographed service (BPEL process) to access existing IMS
transactions
 IMS and SEPA compliance
– Integrate with WebSphere Transformation Extender support complex data
formats, e.g. SEPA, SWIFT (financial services), HIPAA (healthcare), and
EDI (cross-industry), etc.
WebSphere Transformation
IMS TM
Extender (WTX) or
resource IMS
WebSphere Message
adapter
Broker (WMB)
TCP/IP
WebSphere Application Server / IMS
WebSphere Process Server IMS App
Connect
Web
Service IMS TM IMS DB
Enterprise
Web Bean resource (includes
XML data)
Component adapter

p. 9
Banking Center of Excellence

Web Service Enablement with WebSphere and IMS TM Resource Adapter

IMS App SOA clients


Source

WebSphere Application Server


Input/Output
Data Binding
IMS TM
Web Service Resource
Adapter
IMS deploy
TM J2C
J2C Java Bean EAR
Resource Wizard
Adapter
IMS

Web Service
IMS IMS App
(WSDL File)
Connect
Web Service
Rational Application Developer IMS DB &
XML DB

Development Test and Runtime

10 © 2008 IBM Corporation


IMS TM Resource Adapter features
 Supports J2EE Connector  Connection Management
Architecture (JCA) 1.0 & 1.5 – Connection pooling
• Runs in WAS/WPS/WTX/WMB on Windows, – TCP/IP and Local Option connections
Solaris, AIX, Linux, zLinux, z/OS, HP-UX – Handles execution or socket timeouts
• CCI API for standalone Java apps  Transaction Management
 Supports various types of – Global z/OS RRS transaction support and
Distributed XA transaction support with Two
interactions and programming Phase Commit (i.e. SyncLevel Syncpt)
models with IMS  Security Management
– JCA/J2C, SCA, BPEL/Choreography, – J2EE EIS Sign-on
EMD – SSL, RACF key ring
– Password Change
– Invokes IMS transactions or commands
• Conversational and non-Conversational  Enhancements in complex
• Multi-segment messages environment
• COBOL, PLI, MFS, C, Java – Sysplex distributor environment
– zWAS 64 bit support
– Send Recv, Send Only  Provides Rapid Application
– Retrieve Asynchronous output Development
• Purge, Reroute – RSA, RAD, WID, RDz
• Single no wait, single wait
• Alternate Client ID
– Commit mode 1 or 0 processing
– SyncLevel none or Confirm

p. 11
Customer example – IMS TM Resource Adapter
 Banking
– Large Canadian Bank
• 3 IMS sysplexes in production, processing 50 million transactions a day
– Situation
• Needed to reuse the bank's extensive IMS assets as components to
deliver new financial services and extend client reach
• Needed to maintain high availability and throughput in the new IMS
profile
– Solution
• Evolving IMS in a growing portfolio of new applications for the branch
platform and mission-critical "e" channels since 2002
– 18 IMS Connect instances, and growing IMS TM Resource Adapter
applications in 3 WebSphere Application server for z/OS sysplexes in
production now
– Rational Application Developer for Java development

p. 12
IMS SOAP Gateway
 A direct Web Service solution for IMS
– Light-weight web service support
• No not need Java EE server (e.g. WebSphere Application Server)
– Integrate IMS assets into SOA using Web Service and SOAP interface
– XML transformation in IMS Connect
• Handles XML data with no change in IMS application
– Supports industry web service standards
• HTTP(S), SSL, SOAP 1.1, WSDL 1.1, WS-I BP 1.0
Generates

Rational WSDL, Correlator


IMS
application Developer for Converters
source System z

p. 13
XML Conversion Support

 XML converter routines


IMS Connect

– Cobol / PLI source code


Adapter
•Provide the information needed to perform Task
HWSSOAP1 Manager
conversion from tagged data to a byte Exit routine
stream
XML
–Unique to each message definition Adapter
For COBOL
•Can be generated by RDz toolkit

COBOL
– Compiled and bound into file that is Converters

concatenated into IMS Connect STEPLIB


 Without converter routines in IMS
Connect
– IMS application will need to perform the
conversion

p. 14
IMS SOAP Gateway Example
<?xml version=“1.0”?>
<INPUTMSG><in_ll>32</in_ll><in_zz>0</in_zz>
<in_trcd>IVTNO</in_trcd><in_cmd>DISPLAY<in_cmd> ….IVTNO DISPLAY LAST1
01 INPUT-MSG.
<in_name1>LAST1</in_name1></INPUTMSG> 02 IN-LL PIC S9(3) COMP.
02 IN-ZZ PIC S9(3) COMP.
02 IN-TRCD PIC X(10).
02 IN-CMD PIC X(8).
IMS SOAP Gateway IMS Connect …
XML XML
XML IMS
Appl format Adapter
GU. IOPCB
Appl format …
ISRT, IOPCB
Appl format
Appl format
XML
XML XML Adapter 01 OUTPUT-MSG.
02 OUT-LL PIC S9(3).
02 OUT-ZZ PIC S9(3)..
02 OUT-MSG PIC X(40).
<cbl:OUTPUTMSG xmlns:cbl= 02 OUT-CMD PIC X(8).

“http://www.XCNVI.com/schemas/XCNVIInterface”>
….ENTRY WAS DISPLAYED
<out_ll> 093</out_ll><out_zz> 000</out_zz> DISPLAY LAST1
<out_msg> ENTRY WAS DISPLAYED</out_msg> FIRST1
<out_cmd>DISPLAY</out_cmd> 8-111-11111D01 / R010001
<out_name1>LAST1</out_name1>

p. 15
Customer – IMS SOAP Gateway

 Who?
– A global car and equipment manufacturing company

 Situation
– Allow their factory devices to send status to IMS
– Direct access from Microsoft .NET applications to IMS applications

 Solution
– IMS SOAP Gateway on z to provide direct Microsoft .NET access
to IMS transaction

p. 16
IMS MFS Web Solutions
 Modernize MFS-based IMS transactions
 Revitalize existing assets with total cost reduction
– 3270 emulator and VTAM are no longer required
 MFS SOA Support
– Transform MFS based IMS transactions as Web services via
Rational Application Developer (RAD) & WebSphere Application
Server (WAS)
 MFS Web Enablement
– Render displays on new modern devices, extending the use of
MFS without modifying existing applications
– Web browser & WebSphere Application Server
– Cell phones (requirement)
– PDAs (requirement)

p. 17
IMS MFS SOA Support
 Message Formatting Service SOA is designed to provide a
systematic approach of transforming existing MFS-based
IMS application into MFS J2C Services
 Enables MFS-based IMS transaction to be accessed from
the web and reusable for many B2B scenarios
WebSphere
Application MFS SOA Services IMS IMS
Server CONNECT

MFS Source
MFS SOA
EMD Wizard
DEPLOY

JSP E
XML
XML WSDL A
MFS Reverse schema
schema
(XSD) R
Utility Tool (XSD) EJB

(optional)

p. 18
IMS MFS Web Enablement
 Provide B2C solution to web-enable existing MFS-based
IMS business logic.
 Maintain conversational iterations.
 Render displays on new modern devices, e.g. browsers

VTAM IMS
MFS
Online MPP/IFP/
Processor BMP/JMP

MFS-based
Transactional
MFS WEB MFS Web Enablement Adapter IMS IMS O Application
Enablement Resource T
servlets Input adapter Connect Program
Record
M
A
Byt
DEV MSG stream
e Output
Record
loads Stylesheet

WebSphere Application Server

p. 19
Customer example – MFS web services
 Avnet
– Electronics distributor
• Mainly MFS-based with IMS and Oracle DB installations
– Situation
• Had to independently access their Oracle and MFS-based transactions
• Needed an integrated Web services-based application to access both
– Solution
• MFS SOA support

“a better application at a lower cost--


and certainly more sustainable” Avnet
p. 20
IMS and Web 2.0 – IMS Web 2.0 Solution
Rapidly Extend Business Logic
 Customers can extend their IMS investment by converting an IMS
transaction into a RESTful service or feed, which can be
aggregated with other Web 2.0 services

 IMS customer can


then remix and Other
web feed
mashup their data
rapidly with IBM
Web 2.0 offerings
to extend their
business logic
without the need
to write a single
line of code. Google
Maps
feed
IMS feed
Inventory and
branch
locations

p. 21
IBM Mashup Center
IMS and Web 2.0 – Unleash and Reshape IMS
GA
06/30/2008
 Integrate your existing IMS assets into Web 2.0 mashup solutions
 Contains InfoSphere MashupHub and Lotus Mashups
– Transform IMS Cobol and PL/I transactions into REST services/feeds
– Mashup maker with many built-in widgets (e.g. URL/XML/RSS Viewer, Google Map,..)

Demo on YouTube: http://www.youtube.com/watch?v=nbognkeU_sI

p. 22
Upcoming IMS V10 SPE - IMS Connect API
 Provide API to simplify use of IMS Connect by RYO applications
– Currently, RYO client developers must understand intricacies of IMS
Connect headers (IRM, CSM, RSM, etc.) and message protocols
– Intended for all customers who write client applications that interact
directly with IMS Connect (IMS Connect clients that do NOT use IMS
TM Resource Adapter or IMS SOAP Gateway)

 IMS Connect API will


– Shield customers from dealing with IMS Connect headers and
protocols as well as TCP/IP sockets programming
– Allow RYO client developers to configure an interaction by setting
attributes values which describe the type of interaction to be
performed
– Execute interaction with Connect and return response to client

 Goal is to support all available IMS Connect functionality in stages

p. 23
Other Solutions
for accessing IMS TM

p. 24
3270 Emulation
 Benefits and value
– Straightforward and simple
• Traditional IMS communication model
– Leverages standard TCP/IP Telnet (TN3270) capabilities
 IBM’s Host Integration Solution - Host Access Transformation Server
(HATS)
– Out of the box - transforms 3270 data streams to HTML
• Provides customization and access to multiple hosts
– Access provided as Java Applets or as Host Servlets
– Supports the creation of Web Services

WebSphere Studio
/ RAD
TCP/IP VTAM
Telnet

IMS

p. 25
Messaging and Queuing
 WebSphere MQ (MQSeries)
– Supports the use of MQ API
• Remote program is not sensitive to the network type
– MQ provides its own high-level standard API
– Same applications can be deployed on TCP/IP or SNA
– Supports the use of JMS (Java Message Service) API
• Messaging standard that allows application components based
on J2EE to create, send, receive, and read messages

Remote Application OTMA


MQ Bridge IMS
MQ IMS Adapter MQ calls ...
– uses the IMS ESS interface MQ calls
- Supports the use of explicit MQ calls GU, IOPCB

in the IMS application XCF calls ...


ISRT, IOPCB
MQ calls
Local Q Transmission Q
MQ IMS Bridge
– uses the OTMA interface MQ MQ on z/OS
- Takes advantage of the DL/I call NETWORK NETWORK
(VTAM LU 6.2 or TCP/IP)
interface in the IMS application (VTAM LU 6.2 or TCP/IP)

p. 26
And then there is DataPower
IBM SOA appliances are purpose-built hardware that simplify, accelerate
and help secure XML Web services for SOA

XI50 Integration Appliance


–Expands support to non-XML solutions
–Advanced architecture
Add: DataPower XML –Integrated message-level security
Integration & existing
systems connectivity SW
XS40 XML Security Gateway
–Security, agility and performance
–Device can off-load application security software
Add: DataPower –Performs XML Web services security functions
XML Security SW (parse, filter, validate schema, encrypt/decrypt,
signatures, access control, and more)

XA35 XML Accelerator


–Offloads overtaxed servers by processing XML,
XSD, XPath and XSLT at wire speed
–SW provides significant performance
improvements over WebSphere solutions
–HW + SW provides enterprise-class performance
p. 27
DataPower …
 AND more importantly:
MQ IMS
Bridge

OTMA
IMS
– An MQ client MQ client

IMS application
(Cobol,, etc.)

DataPower 3.6.1 – Available December 2007

– An IMS Connect client

OTMA
IMS
Connect IMS

IMS Connect
client
IMS application
(Cobol,, etc.)
IRM
Request

ftp://ftp.software.ibm.com/software/websphere/integration/datapower/WSB11353-USEN-00.pdf

p. 28
All in All
Many vendors, many solutions - Good News for IMS !!!
• Crossplex e3270 Emulation - SofTouch Systems Inc. • Attachmate - Synapta Services Builder for IMS
http://www.softouch.com/cpx_prod/index.html# http://www.attachmate.com/NR/rdonlyres/2FFC7D0A-9744-4996-
• HOBLink TE - https://webshop.hob.de/scripts/produkte.php 95CE-18AFCEC0B4F7/0/tp_ssb_transactionaccess.pdf
• Host Access Transformation Services – IBM • Comporsys Connector for IBM IMS
http://www.ibm.com/software/webservers/hats/ http://www.comporsys.de/pdf/connector,ims,datasheet(en).pdf
• Jacada - http://www.jacada.com • Microfocus Mainframe Express (MFE) IMS Connect interface
• Resqnet - http://www.resqnet.com http://www.microfocus.com/mfnewsletter/20040601_004.asp
• Web 390 for OS/390 and MVS - Information Builders • MicroSoft Transaction Integrator
http://www.informationbuilders.com/products/web390/pdf/web390.pdf http://msdn.microsoft.com/library/default.asp?url=/library/en-
• IONA Mainframe Integrator for IMS - http://www.iona.com us/his_2004main/htm/his_planning_for_transaction_integrator
• iWay Adapter for IMS/TM _node_gphi.asp
http://www.egeneration.com/iwaydocs/iway55/5.5.001/iw55_ims.pdf • NetManage OnWeb Connectors
• Sybase XJS 390 Enterprise Integrator 3.8 http://www.ftp.com/products/pdf/datasheets/OnWeb_Connectors2_3- 05.pdf
http://www.sybase.com/detail?id=1018620 • SeeBeyond e*Way Intelligent Adapter for IMS
• webMethods 6 Mainframe Integration - http://www.webmethods.com http://goldstar.seebeyond.com/support/support/docs/4.5.4/e
• BMC Energizer for IMS Connect - http://www.bmc.com/ Way_Intelligent_Adapters/IMS_eWay_Monk.pdf
• IMS Connect Extensions - http://www.fundi.com.au/pr_ims_ce.html
• Oracle Access Manager for IMS
• Seagull LegaSuite for IMS http://www.wisc.edu/drmt/am4ims.html
http://www.seagullsoftware.com/products/ims/runtime- http://www.oracle.com/technology/products/gateways/pdf/amims.pdf
architecture.html • MQ offerings -
• IBM – IMS Connect http://www-306.ibm.com/software/integration/mqfamily/directory/
http://www-306.ibm.com/software/data/ims/connect/index.html bridges.html11
• IBM – MQ Bridge - http://www-306.ibm.com/software/integration/wmq/ • Attunity Connect – http://www.attunity.com/Products/AttunityConnect.Asp
• BEA eLink Adapter for Mainframe TCP - BEA Systems • eWay™ Intelligent Adapters 5 - SeeBeyond
http://e-docs.bea.com/elink/mainfram/tcp/v32/pdf/tuxug.pdf http://www.seebeyond.com/software/eway.asp
• NEON Systems Shadow Interface™ for IMS/TM - Neon Systems Inc. • GT Software - Ivory Data Access
http://www.neonsys.com http://www.gtsoftware.com/content.asp?page=IMS%20or%20DL/1%
• IMS Server Adapter OTMA Plug-IN – IONA (uses OTMA C/I) 20Data%20
http://www.iona.com/support/docs/orbix/mainframe/6.0/ims_admin/ • AccessIMS Adapter for Sonic ESB - Sonic Software
OTMAConfig2.html#302847 http://www.sonicsoftware.com/products/docs/adapter_esb_ims.pdf
• Informatica PowerExchange for IMS
http://www.informatica.com/products/powerexchange/supported_platforms/
ims/infa_px_ims_120204.pdf … and many more
p. 29
IMS Access to SOA
IMS as a Service Consumer to access
external resources

p. 30
IMS V10 – IMS as an Integration Focal Point
 IMS applications can access other
environments and data

 Enables IMS applications as clients


any IMS z/OS to interoperate with web services
platform
Initiating outside IMS
Client
– Better integration of IMS applications
for SOA
IMS
External Application
Application  Enhances integration of IMS
CALLOUT
transactions as Web services for
conversational composite business
applications
– Maximizes re-use of IMS applications
for rapid business innovation and
reduced costs

p. 31
IMS V10 Asynchronous Callout
 Enables IMS application to act as a client to asynchronously
invoke J2EE applications and Web Services
– Callout to J2EE apps (e.g. EJB) and Web Services using WebSphere
Application Server and IMS TM resource adapter
– Callout to Web services using IMS SOAP Gateway
– Callout to other apps

IMS z/OS
WebSphere Application Initiating
Server Client

Descriptors
OTMA Routing
Web EJB IMS IMS
Service TM RA Connect
Hold IMS App 1
Q (ISRT ALTPCB)
Web XML Request
SOAP Adapter
Service
Gateway
IMS App 2
Other Response
Apps

p. 32
IMS 10 SPE - Synchronous Callout
 Enables IMS application to act as a client to invoke Web Services provider,
Java EE (e.g. MDB/EJB) and RYO (e.g. SAP) applications
 Synchronously receive output back in the same IMS transaction instance

p. 33
Synchronous Callout Highlights
 New IMS DLI ICAL call for synchronous callout request and
response

 Leverage existing IMS and industry standard protocols

 Provide management of the correlation and allows


concurrent processing

 Enhanced operation commands to view synchronous


callout status and stop callout processing

 Timeout value to terminate callout request and free the IMS


dependent region

 Support messages larger than 32K without having user


application to handle segmentation

p. 34
And.. other Solutions
for calling out from IMS

p. 35
Other Solutions
 Websphere MQ/MB/ESB
– MQ API calls in IMS applications can participate in solutions
provided by WebSphere Message Broker and the ESB (enterprise
service bus)
• Transforms messages formats between MQ applications and web
services
IMS/ COBOl pgm WebSphere MQ WebSphere WebSphere
Message Broker V6x Application Server
MQPUT MQ
MSG XML
Web service
Transformation
MQGET engine

WebSphere Message Broker


Transformation, Routing and Data Integration
WebSphere Event Broker
- Provides an ESB solution
- Powerful engine for message/data transformation WebSphere MQ (including
and integration JMS)
- XSLT engine for XML transformation
- Web services (HTTP/SOAP) protocol support

p. 36
Other Solutions …
 “SQL CALL” to DB2 stored procedures
– IMS application program must include logic to
• Set the host variables prior to executing the CALL
• Handle any error conditions returned by the stored procedure
IMS application
DB2 WebSphere
01 aaa PIC X(30). Application Server
01 bbb…
….
Stored
EXEC SQL: procedure Web service
CALL MYPROC ( :aaa
, : bbb
)
END_EXEC.

UDFs - user defined functions

– References
• SG24-7083 DB2 for z/OS Stored Procedures: Through the CALL and Beyond
– Chapter 24.4 - Accessing DB2 stored procedures from IMS
• SG24-7064 WebSphere for z/OS V6 Connectivity Handbook
– Chapter 13.2 - Calling a web service from DB2

p. 37
Other Solutions …
 IMS Java application capabilities
– Java applications can directly invoke a web service
• JAX-WS
• Direct socket connection to machine hosting the service

IMS JMP
WebSphere
Application Server
Java
program Web service

– References
• SC18-7821 IMS Java Guide and Reference
• SG24-7064 WebSphere for z/OS V6 Connectivity Handbook
– Chapter 14 - Connecting to WebSphere from IMS using SOAP

p. 38
IMS and IBM SOA Foundation
IMS and WebSphere/Rational development family

p. 39
IMS & the IBM SOA Foundation
Rational Application Developer
WebSphere Integration Developer
Rational Developer for System z1

WebSphere Application Server & XD


WebSphere Process Server F
WebSphere Message Broker
WebSphere Transformation Extender

Rational Software Architect WebSphere Service Repository Registry2 F

IMS TM Resource Adapter IMS SOAP Gateway IMS MFS Web Enablement IMS Info 2.0
IMS DB Resource Adapter IMS MFS SOA IMS DLI Model Utility3 F - Future Requirement

p. 40
IBM Rational Application Developer (RAD)
IMS App Source
(COBOL, PLI, MFS, C)
 Easy-to-use application
development tool
 Graphical and source
editors
 Modernize your IMS
IMS*PL/I
*MFS,
application
Source
application
IMS TM – Parse existing IMS
IMS
ResourceC application source and
Adapter
Source
application generates Web app,
EJB and Web Service
IMS
COBOL
Copybook
application – No need to change
IMS application

p. 41
IBM WebSphere Integration Developer (WID)
 Simplify and accelerate the
development of integrated
IMS TM
Resource applications
Adapter

 Implements Service
Component Architecture
(SCA) technology and
business process
choreography

 Industry-standard service-
oriented architecture

p. 42
Rational Developer for System z (RDz)
 Application development tool for modernizing and developing
System z application
 Support for IMS SOAP Gateway
– Web Service Provider scenario
• Generate WSDL, XML converters
and correlator files from
COBOL/PLI source files
– Web Service Consumer scenario
• Generate XML converters,
correlator files from COBOL source
and Web Service WSDL files

 Support for IMS Info 2.0


– Generate correlator and XML converters from COBOL/PLI source files
 Also includes features from RAD (e.g. IMS TM RA tooling)
** Unwarranted two complimentary copies of RDz 7.1.x for IMS V10 users
p. 43
Banking Center of Excellence

IMS SOA Integration Suite

IMS TM IMS DB
COBOL PL/I C Java MFS DLI Data XML Data

IMS DLIModel
Utility
IMS
SOAP
Gateway *IMS Open DB
IMS IMS TM IMS DB
MFS Web And Universal
Web 2.0 Resource Resource
Solutions JDBC Drivers
*IMS Connect
Solutions Adapter Adapter
API IMS XQuery
WebSphere

Service Oriented Architecture (SOA)


Web Services, SOAP, XML, Java, SCA/SDO, XQuery, Web 2.0
* - Denotes upcoming functions

44 44 © 2008 IBM Corporation


Access to IMS data
SOA solutions for IMS DB

p. 45
Access to Data
 Direct Connection (database) interfaces
– DRA interface (Database Resource Access)
• Traditional DBCTL interface
– ODBA interface (Open DataBase Access)
• Callable interface to IMS DB
 IMS SOA Integration Suite
– Java support in IMS, IMS DB Resource Adapter, DLI Model Utility,
IMS XML DB, etc..

EJB
Stored IMS DB Resource Adapter
Proc
IMS DB Resource Adapter Java Virtual Machine
Java Virtual Machine

z/OS
ODBA JMP JBP
JCICS
IMS DB Resource Adapter DRA
IMS DB Resource Adapter
Java Virtual Machine IMS DB
Java Virtual Machine

p. 46
Java support in IMS
Write IMS application in Java and more…
 IMS dependent regions for Java (JMP and JBP)
– JMP access to IMS message queues, IMS and DB2 databases
– JBP access to IMS, DB2 as well as GSAM databases
 Access from IMS database from
– IMS dependent regions, WAS z/OS and distributed, CICS, DB2 stored
procedures
 Language interoperability
– Ability for Java and OO COBOL to invoke one another within the same
transaction
 DB2 interoperability
– Allow the use of either the DB2 JDBC or SQLJ
– DB2 and IMS activity in the same unit of work
– Return IMS data to a DB2 Java stored procedure encapsulated in a DB2
result set
 Java TM and DB API
– IMS message queue processing, program switching, etc
 JDBC driver for IMS
– SQL access to IMS Data
p. 47
Customer example – IMS Java API
 Who?
– German bank
• Mainly PL/I based with conversational transactions
 Situation
– Purchased 3rd party credit checking technology as part of a Java
package
• Replaced existing PL/I-based transaction
– Wanted to deploy this in a Java Dependent Region and integrate
with existing PL/I applications
• Just another service…
 Solution
– Leverage the deferred program switching support already in IMS
(and supported within the Java class libraries) to switch
conversation iterations from MPP to JMP regions and back
– In production within a month with this solution

p. 48
JDBC (Java Database Connectivity)
 Defines a standard Java API for accessing databases

 Provides an API for sending SQL statements to a relational


database and processing the tabular data returned
– Wait a minute…IMS is hierarchic
– More on this later

 JDBC application model


– Establish and open connection to database
– Execute query and obtain results
– Process results
– Commit the results
– Close connection

 Provides application interoperability

p. 49
SQL and IMS

 SQL is an extremely powerful query language


– Designed to be usable for all database types
– Multiple ways to write queries that return the same
results
• Can prove costly with inefficient queries
– IMS JDBC supports subset of SQL syntax
• Limit function to what IMS DBMS can do natively

p. 50
IMS DB Resource Adapter
 IMS provides a JCA resource adapter for deployment in a
WebSphere Application Server runtime
– There is also an IMS TM resource adapter that provides J2EE
platform access to existing IMS transactions

 JCA interaction ultimately provides the application with a JDBC


Connection to an IMS DB
– A direct connection to an IMS database
– Applications can directly query and manipulate IMS database
information using JDBC with both SQL and XQuery

p. 51
Features
 Supports J2EE Connector Architecture (JCA) 1.0
 Connection Management
– Connection pooling
 Supports various types of interactions and programming models
– JDBC
• SQL and XQuery support
– Java for DLI
 Security Management
– RACF for authentication
– ODBA does additional check for PSB (database) authorization
 Transaction Management
– Global z/OS RRS transaction support
 Multi-platform support
– Runs in WebSphere family of 31 and 64 bit application servers

p. 52
JDBC access to IMS DB with DB Resource Adapter
 WebSphere z/OS and IMS Java support
WAS for z/OS
IMS IMS
IMS
HTTP IMSDB
DB
EJB
EJB Resource
Resource
DB
DB
Server (JDBC
(JDBCcalls)
calls) adapter
adapter (ODBA)
(ODBA)
z/OS
 Support with IMS V9 – IMS Java Remote Data Services
WAS Distributed WAS for z/OS
Client Distributed EJB
Clientside
side Distributed
IMS
EJB
(CM) IMS
IMSDB
DB IMS
IMSDB
DB
EJB
EJB IMSDB DB (CM) Resource (ODBA)
Resource Resource (ODBA)
application Resource adapter
application adapter
adapter EJB
EJB
adapter
(BM)
(BM) z/OS

 Support with IMS V11 – IMS Open Database and Universal JDBC Driver

WAS Distributed or z/OS


Universal
Universal
EJB IMS
EJB IMS
IMSDB
DB IMS
IMS ODBM IMSDB
DB
application
application Resource
Resource Connect
Connect ODBM (ODBA)
adapter (ODBA)
adapter
z/OS

p. 53
CM: container managed (supports global transaction semantics)
BM: bean managed (supports local transaction semantics)
IMS V11 IMS Open Database
 Leverage and expose IMS data in a distributed topology
– Enable creation of services that expose IMS data to distributed
platforms
• PSB authorization still applies!

 Distribution of database assets comes in two flavors


– Distribution within an IMS plex
• Applications on one LPAR can access an IMS database on another
LPAR
– Distribution to non-zSeries platforms
• Applications on a non-zSeries platform can have direct IMS DB
access without needing an IMS transaction to proxy the data

IMS Connect will be the gateway to IMS DB as well as TM

p. 54
IMS V11 Open Database

z/OS LPAR A
Final ODB
Current Solution
Solution
Evolution of ODB IMS
ODBM
WAS z/OS
Distributed T
C
O
S
D
PC S O
D
PC CTL
P C C IMS DB
I B B
P I
A I A
IIOP
WebSphere

S
J T LPAR B IMS
C C
O
A P IIOP WAS z/OS
A
XCF S O
I PC
P T D CTL
1.5 P C
S C IMS DB
B
P C I
I
A
TCP/IP P I

LPAR C
IMS
TCP/IP IMS Connect
JDBC O
S PC
T S D CTL
C C IMS DB
TCP/IP P
B
C
Roll Your Own I
I A
P I

p. 55
Customer example – IMS DB RA
 Who?
– One of the world’s largest public corporations by revenue

 Situation
– Wanted to move to a web-based J2EE model in order to manage
internal inventory across their 4 regions in the United States

 Solution
– Leveraged the IMS DB resource adapter in order to develop
Enterprise JavaBeans that could access the target IMS databases
directly
– WebSphere Application Server for z/OS V5

p. 56
IMS XML Database Support
 Introduces a way to view/map native IMS hierarchical data to XML
documents
– Aligns IMS Database (DBD) with XML Schema
 Allows the retrieval and storage of IMS Records as XML
documents with no change to existing IMS databases
 Enables query of IMS data using XQuery

XML Schema IMS DBD


book

PCB: BIB21

@year seq
BOOK

XML xs:date title choice publisher price


YEAR TITLE PUBLISH PRICE
IMS
Documents Data
0:oo 0:oo
xs:string author editor xs:string xs:decimal
AUTH EDIT
LAST FIRST LAST FIRST AFFIL
seq seq

last first last first affiliation

xs:string xs:string xs:string xs:string xs:string

p. 57
IMS XML Database Support
 Storage and retrieval of XML Documents
– Composition of XML documents from existing IMS databases
– Creation of IMS segments from XML documents (decomposition)
– Intact storage of XML Documents (without decomposition)
IMS Java IMS DB
XML Document Application
<?xml version=‘1.0’?>
<customer xmlns=
‘http://www…/PSB/PCB’>
<cust> … XML Schema
<name> … </name> <?xml version=“1.0”’
</cust> encoding=“UTF-8”?>
<xsd:schema xmlns:xsd= …

<xsd:element name=“cust”>

WAS Distributed WAS for z/OS


EJB
EJB
Client Distributed
Clientside
side Distributed
IMS
(CM)
(CM) IMS
IMSDB
DB
IMS
IMSDB
DB
EJB
EJB IMSDBDB Resource (ODBA)
Resource Resource (ODBA)
application Resource adapter
application adapter
adapter
EJB
EJB adapter
(BM)
(BM)
z/OS
Java application that stores/retrieves XML documents can run in a distributed environment

p. 58
XQuery support in IMS V10
 Further aligns IMS with industry direction Information
as a Service
– XML, SOA, Web Services, etc.

Content
 More natural fit for hierarchical data querying

Data
 Enables customers to leverage emerging standard
skill set

 Enhanced product and tooling integration

 Our IMS XML solution has a 38+ year head start

 Immediately usable with no migration of existing IMS


data

p. 59
IMS DB XML APIs
IMS V9 XML API <xsd:annotation>
<xsd:appinfo>
XML CLOB <ims:DLI mode="store"
<B> PSB=“MYPOPSB"
<f1> </f1>
SELECT retrieveXML( B)
FROM PCB C PCB=“MYPOPCB"
<f2> </f2>
<xsd:element name=“A”>
<f3> </f3> WHERE C.FIELD….
<xsd:element name=“field1"
<B>

DLIModel Generated
XML schema
XML document IMS V10 XQUERY API
A
Af1(x)
SELECT retrieveXML( B,
<B>
<f1> </f1>
‘for $x in /B BBB1 B2 D1 D2
where $x/@f1 = z
<f2> </f2> C1 C2f6(Y)
<f3> </f3>
return <namelist>
<xsd:annotation> IMS DB
<B> {$x/B/f4}
</namelist>’) <xsd:appinfo>
Note: Segment Names ~ Table Names <ims:DLI mode="store"
FROM PCB C
Segment Instances ~ Table Rows PSB=“MYPOPSB"
WHERE C.FIELD…
Field Names ~ Column Names PCB=“MYPOPCB"
<xsd:element name=“A”>
XQUERY - an evolving <xsd:element name=“field1"
standard API designed to query and format XML data …
DLIModel Generated
IMS XQUERY processor XML schema
- Extends IMS XML DB
- Uses XML schemas generated by DLIModel

p. 60
V10 SPE IMS DB web services
 Provide ability to expose a database query as a
callable web service
– Tooling support generates
• Deployable ear file
• WSDL WebSphere Application
Server
DLIModel Utility

Config
EAR

WSDL
 Types
 Interface
 Binding
 Service

p. 61
DLIModel Utility
 IMS database visualization tool
– Visualize an entire IMS PSB
– Can view each PCB individually
• Hierarchy, segments, fields, types, etc
 IMS database metadata generation tool
– Generates the necessary metadata that
is consumed at runtime by IMS DB
Resource Adapter, XML-DB support
• Database metadata
• XML schema
 Bottom up tooling approach
– Parses PSB and DBD source
– Optionally COBOL copybook
definitions of segments
 An Eclipse 3.x plug-in

p. 62
Database Visualization (UML View of the Database
Metadata)

p. 63
AND …

Other IBM Solutions


for accessing IMS DB

p. 64
Information Integration
 Websphere Classic Federation Server for z/OS
– Integrates access to a variety of resources
• ODBC, JDBC access to IMS data
– Read and update access to IMS DB using JDBC and ODBC
• Access to IMS transactions
AIX, HP-UX, Portal ASP BI Tool Servlet Servlet Client
Solaris, Class
Linux, Wintel ODBC client EJB JDBC Client

WebSphere Classic Federation


Metadata
Catalog Server for z/OS

DB2 UDB VSAM IMS Software AG CA CA


for z/OS Adabas Datacom IDMS

•http://www-306.ibm.com/software/data/integration/iicf/support.html
p. 65
Pushing Data Out
 IBM solutions
– IMS Architecture capability – Data Capture Exit
• Supports
– Synchronous capability
• Extension to the IMS application as an exit routine (no change to
application)
• ISRTs ALTPCB, db calls, MQ calls, Socket calls, etc.
– Asynchronous capability
» Data Capture Log records – x’99’
– WebSphere Classic Event Publisher for IMS (5655-M38)
• Leverages the IMS Data Capture architecture
– Captures changes made to IMS files using an IMS logger exit
• Captured changes are reformatted into a relational data format
– The relational format data is packaged as a self-describing XML
message
– The XML messages are published to WebSphere MQ

p. 66
No additional cost
IMS SOA solutions - Summary for IMS licensed users

Web Direct
service Solutions Database
clients Solutions access
WID RAD Developers
DLI
Model
Java/J2EE Utility
Client WebSphere
Java
dev IMS TM
Resource
IMS WebSphere
Java /J2EE
Developer
Web Service

Adapter
IMS DB
.NET MFS Web Transaction Database Resource
Services Adapter
Client SOAP manager manager

ODBA /DRA
IMS Connect
Java
Client class
Direct
SQL
Developer TCP Library
SOAP IMS DL/I XQuery CICS
/IP
APP DL/I
SAP IMS SOAP Developer
Gateway
Client Java
DB2
Application class
SP/CICS
RDz Database
developer Java Library Java
class class
REST Service

Library Library
WebSphere

Web 2.0 InfoSphere DB2


MashupHub
Mashup HTTP
Developer
IMS Web DLI DLI
2.0 Model Model
Solution Utility Utility
Business
/ IT user

p. 67
Final Thoughts
 With SOA you are looking to build a reuse culture
 All roads lead to the people
– Everybody gets involved in SOA – need to work across
organizations
 SOA is a journey, not a one-time project that a single
department implements
 Corporate-wide process
– Leverage technology in a way that reflects the business’s
key business processes
– Enable business to change when needed without being
constrained by IT
 IBM (and IMS) are here to support you every step of the
way

p. 68
How Do I Get It?
 IMS SOA Integration Suites
– http://www.ibm.com/software/data/ims/toolkit/
• IMS TM resource adapter
• IMS DB resource adapter and JDBC driver (information)
• IMS XML DB (information)
• IMS DLIModel utility
• IMS MFS Web support
• IMS SOAP Gateway
 IMS
– FMID for DB resource adapter, JDBC driver, and XML-DB support
• IMS V8 (JMK8806)
• IMS V9 (JMK9906), also includes XML-DB support
• IMS V10 (JMK1016), also includes XQuery support
 IMS Info 2.0
– IBM Mashup Starter Kit is available on both IMS and IBM Alphaworks
website
• http:/www.alphaworks.ibm.com/tech/ibmmsk
– IMS Info 2.0 demo video on YouTube
• http://www.youtube.com/watch?v=BWJGSC-RyXQ

p. 70
How Do I Get It? …
 Rational Application Developer
http://www.ibm.com/software/awdtools/developer/application/index.html
 WebSphere Integration Developer
http://www.ibm.com/software/integration/wid/about
 Rational Developer for System z
http://www.ibm.com/software/awdtools/rdz

p. 71

You might also like