SA_IMS_SOA_Seminar_-_IMS_and_SOA

March 20, 2018 | Author: Kirupakaran Ganesan | Category: Ibm Db2, Service Oriented Architecture, Databases, Application Programming Interface, Web Service


Comments



Description

IMS and SOADeepak Kohli IMS SOA Solutions Support [email protected] 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.. 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 . etc.Net. 4 . XQuery. WS-*. and application development p. data representation.  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. SAP.. HTTP. XML. SOAP. Web 2. XML. XQuery.0 * .Denotes upcoming functions 5 5 © 2008 IBM Corporation . Java.0 Solutions IMS TM Resource Adapter IMS DB Resource Adapter WebSphere *IMS Open DB And Universal JDBC Drivers MFS Web Solutions *IMS Connect API IMS XQuery Service Oriented Architecture (SOA) Web Services.Banking Center of Excellence IMS SOA Integration Suite IMS TM COBOL PL/I C Java MFS IMS DB DLI Data XML Data IMS SOAP Gateway IMS DLIModel Utility IMS Web 2. SCA/SDO. 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 Cobol COMTI Assembler Visual Basic C/C++ PowerBuilder Java Java Applet BROWSER Web Server program TCP/IP IMS Connect IMSA ... Web Server VTAM Websphere 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 . SEPA. SWIFT (financial services). etc.g. WebSphere Transformation Extender (WTX) or WebSphere Message Broker (WMB) WebSphere Application Server / WebSphere Process Server Web Service Web Component IMS TM resource adapter IMS TCP/IP IMS Connect IMS App Enterprise Bean IMS TM resource adapter p. Web Service. 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. SCA. and EDI (cross-industry). Java Connector Architecture (JCA/J2C) Resource Adapter that allows IMS connect to external systems – Enable J2EE application. HIPAA (healthcare). 9 IMS DB (includes XML data) .IMS TM Resource Adapter (previously known as IMS Connector for Java)  WebSphere-based. Banking Center of Excellence Web Service Enablement with WebSphere and IMS TM Resource Adapter IMS App Source SOA clients WebSphere Application Server Input/Output Data Binding Web Service IMS TM Resource Adapter Web Service (WSDL File) Web Service J2C Wizard J2C Java Bean deploy EAR IMS TM Resource Adapter IMS IMS Connect IMS App Rational Application Developer IMS DB & XML DB Development 10 Test and Runtime © 2008 IBM Corporation . RAD. Solaris. PLI. HP-UX • CCI API for standalone Java apps  Connection Management – Connection pooling – TCP/IP and Local Option connections – Handles execution or socket timeouts  Supports various types of interactions and programming models with IMS – JCA/J2C. Reroute • Single no wait. EMD – Invokes IMS transactions or commands • Conversational and non-Conversational • Multi-segment messages • COBOL. RACF key ring – Password Change  Enhancements in complex environment  Provides Rapid Application Development – RSA.IMS TM Resource Adapter features  Supports J2EE Connector Architecture (JCA) 1. single wait • Alternate Client ID – Commit mode 1 or 0 processing – SyncLevel none or Confirm p. Linux. 11 . SyncLevel Syncpt)  Security Management – J2EE EIS Sign-on – SSL.e. Send Only – Retrieve Asynchronous output • Purge. BPEL/Choreography. C. SCA. RDz – Sysplex distributor environment – zWAS 64 bit support – Send Recv. AIX.0 & 1. WID. Java  Transaction Management – Global z/OS RRS transaction support and Distributed XA transaction support with Two Phase Commit (i. z/OS. zLinux. MFS.5 • Runs in WAS/WPS/WTX/WMB on Windows. 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 . 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.Customer example – IMS TM Resource Adapter  Banking – Large Canadian Bank • 3 IMS sysplexes in production. WSDL 1.1.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). 13 . Correlator Converters p.IMS SOAP Gateway  A direct Web Service solution for IMS – Light-weight web service support • No not need Java EE server (e. SOAP 1. SSL.0 Generates IMS application source Rational Developer for System z WSDL. WS-I BP 1.1. XML Conversion Support  XML converter routines IMS Connect – Cobol / PLI source code •Provide the information needed to perform conversion from tagged data to a byte stream –Unique to each message definition HWSSOAP1 Exit routine Adapter Task Manager •Can be generated by RDz toolkit XML Adapter For COBOL – Compiled and bound into file that is concatenated into IMS Connect STEPLIB COBOL Converters  Without converter routines in IMS Connect – IMS application will need to perform the conversion p. 14 . .ENTRY WAS DISPLAYED DISPLAY LAST1 FIRST1 8-111-11111D01 / R010001 p. 15 . IMS SOAP Gateway XML IMS Connect XML Appl format Appl format XML Adapter IMS GU. 02 OUT-ZZ PIC S9(3). IOPCB Appl format Appl format XML XML XML Adapter <cbl:OUTPUTMSG xmlns:cbl= “http://www. 02 OUT-LL PIC S9(3).XCNVI. IN-CMD PIC X(8).IMS SOAP Gateway Example <?xml version=“1. IOPCB … ISRT.IVTNO DISPLAY LAST1 01 INPUT-MSG. IN-ZZ PIC S9(3) COMP. … …. 02 OUT-MSG PIC X(40). IN-TRCD PIC X(10). 02 OUT-CMD PIC X(8).com/schemas/XCNVIInterface”> <out_ll> 093</out_ll><out_zz> 000</out_zz> <out_msg> ENTRY WAS DISPLAYED</out_msg> <out_cmd>DISPLAY</out_cmd> <out_name1>LAST1</out_name1> 01 OUTPUT-MSG.0”?> <INPUTMSG><in_ll>32</in_ll><in_zz>0</in_zz> <in_trcd>IVTNO</in_trcd><in_cmd>DISPLAY<in_cmd> <in_name1>LAST1</in_name1></INPUTMSG> …. 02 02 02 02 … IN-LL PIC S9(3) COMP. NET applications to IMS applications  Solution – IMS SOAP Gateway on z to provide direct Microsoft . 16 .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 access to IMS transaction p. 17 .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. 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 Server MFS SOA Services IMS CONNECT IMS MFS Source MFS SOA EMD Wizard DEPLOY JSP MFS Reverse Utility Tool XML WSDL XML schema schema (XSD) EJB (XSD) E A R (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 MFS Online Processor IMS MPP/IFP/ BMP/JMP MFS-based Transactional Application MFS WEB MFS Web Enablement Adapter Enablement servlets Input Record DEV MSG IMS Resource adapter IMS Connect O T M A Program Byt 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 feed Inventory and branch locations Other web feed Google Maps feed p.IMS and Web 2.0 offerings to extend their business logic without the need to write a single line of code. which can be aggregated with other Web 2.0 services  IMS customer can then remix and mashup their data rapidly with IBM Web 2. 21 .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. com/watch?v=nbognkeU_sI p.youtube.. 22 ..IBM Mashup Center IMS and Web 2.) GA 06/30/2008 Demo on YouTube: http://www. URL/XML/RSS Viewer.0 – Unleash and Reshape IMS   Integrate your existing IMS assets into Web 2.g.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. Google Map. etc. RYO client developers must understand intricacies of IMS Connect headers (IRM. RSM.Upcoming IMS V10 SPE .) 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. CSM.IMS Connect API  Provide API to simplify use of IMS Connect by RYO applications – Currently. 23 . Other Solutions for accessing IMS TM p. 24 . 25 .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.Host Access Transformation Server (HATS) – Out of the box .3270 Emulation  Benefits and value – Straightforward and simple • Traditional IMS communication model – Leverages standard TCP/IP Telnet (TN3270) capabilities  IBM’s Host Integration Solution . 26 . MQ calls XCF calls MQ calls OTMA IMS GU. receive.Supports the use of explicit MQ calls in the IMS application MQ IMS Bridge – uses the OTMA interface . IOPCB .2 or TCP/IP) MQ NETWORK (VTAM LU 6... and read messages Remote Application MQ IMS Adapter – uses the IMS ESS interface . send.Takes advantage of the DL/I call interface in the IMS application MQ calls MQ Bridge ..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. IOPCB Local Q Transmission Q MQ on z/OS NETWORK (VTAM LU 6.2 or TCP/IP) p.. ISRT. filter. encrypt/decrypt. agility and performance –Device can off-load application security software –Performs XML Web services security functions (parse. 27 . signatures. validate schema.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 –Integrated message-level security Add: DataPower XML Integration & existing systems connectivity SW XS40 XML Security Gateway –Security. XSD. XPath and XSLT at wire speed –SW provides significant performance improvements over WebSphere solutions –HW + SW provides enterprise-class performance p. and more) Add: DataPower XML Security SW XA35 XML Accelerator –Offloads overtaxed servers by processing XML. access control. etc.6. etc..software.com/software/websphere/integration/datapower/WSB11353-USEN-00.) DataPower 3. 28 .ibm.) ftp://ftp..pdf p.1 – Available December 2007 – An IMS Connect client IMS Connect client IRM Request OTMA IMS Connect IMS IMS application (Cobol.DataPower …  AND more importantly: MQ IMS Bridge OTMA – An MQ client IMS MQ client IMS application (Cobol. com • iWay Adapter for IMS/TM http://www.html • IBM – MQ Bridge .5.http://www.pdf • Comporsys Connector for IBM IMS http://www.com/support/docs/orbix/mainframe/6.com/library/default.http://www.oracle.http://www.com/iwaydocs/iway55/5.attachmate.com/content.com/mfnewsletter/20040601_004.com.pdf • Sybase XJS 390 Enterprise Integrator 3.BEA Systems http://e-docs.ibm.pdf • Microfocus Mainframe Express (MFE) IMS Connect interface http://www.SeeBeyond http://www.asp • MicroSoft Transaction Integrator http://msdn.com • Web 390 for OS/390 and MVS .Ivory Data Access http://www.html http://www.Synapta Services Builder for IMS http://www.ibm.ibm.Neon Systems Inc.com/support/support/docs/4.pdf • MQ offerings http://www-306.ftp.com • IMS Server Adapter OTMA Plug-IN – IONA (uses OTMA C/I) http://www.ibm.com/products/powerexchange/supported_platforms/ ims/infa_px_ims_120204.html# • HOBLink TE .SofTouch Systems Inc.gtsoftware.pdf • Seagull LegaSuite for IMS http://www.sybase.com/software/integration/wmq/ • BEA eLink Adapter for Mainframe TCP .com/software/webservers/hats/ • Jacada .http://www.asp?page=IMS%20or%20DL/1% 20Data%20 • AccessIMS Adapter for Sonic ESB .com/elink/mainfram/tcp/v32/pdf/tuxug.edu/drmt/am4ims.comporsys.microsoft.http://www.4/e Way_Intelligent_Adapters/IMS_eWay_Monk.fundi.softouch. http://www.pdf • Oracle Access Manager for IMS http://www.html#302847 • Informatica PowerExchange for IMS http://www.bmc.asp • GT Software . 29 .informationbuilders.html • Attachmate .https://webshop.neonsys.webmethods. http://www.jacada.All in All Many vendors.Good News for IMS !!! • Crossplex e3270 Emulation .pdf • NEON Systems Shadow Interface™ for IMS/TM .001/iw55_ims.Asp • eWay™ Intelligent Adapters 5 .8 http://www.html • IBM – IMS Connect http://www-306.seebeyond.wisc.pdf • IONA Mainframe Integrator for IMS .com/software/data/ims/connect/index.asp • NetManage OnWeb Connectors http://www.http://www-306.com/Products/AttunityConnect.com/products/ims/runtimearchitecture.seebeyond.05.hob.asp?url=/library/enus/his_2004main/htm/his_planning_for_transaction_integrator _node_gphi.attunity.Sonic Software http://www.microfocus.Information Builders http://www.ims.informatica.seagullsoftware.de/scripts/produkte.php • Host Access Transformation Services – IBM http://www.iona.egeneration.com/technology/products/gateways/pdf/amims.au/pr_ims_ce.0/ims_admin/ OTMAConfig2.com • Resqnet .5.iona.de/pdf/connector.com/products/web390/pdf/web390.datasheet(en).com/software/integration/mqfamily/directory/ bridges.pdf • SeeBeyond e*Way Intelligent Adapter for IMS http://goldstar.resqnet.com/software/eway.com/cpx_prod/index.html11 • Attunity Connect – http://www.com/detail?id=1018620 • webMethods 6 Mainframe Integration .sonicsoftware.com/products/docs/adapter_esb_ims.http://www. many solutions .com/NR/rdonlyres/2FFC7D0A-9744-499695CE-18AFCEC0B4F7/0/tp_ssb_transactionaccess.com/products/pdf/datasheets/OnWeb_Connectors2_3.bea.pdf … and many more p.com • BMC Energizer for IMS Connect .com/ • IMS Connect Extensions . 30 .IMS Access to SOA IMS as a Service Consumer to access external resources p. 31 .IMS V10 – IMS as an Integration Focal Point  IMS applications can access other environments and data  Enables IMS applications as clients to interoperate with web services outside IMS – Better integration of IMS applications for SOA any platform IMS z/OS Initiating Client External Application IMS Application CALLOUT  Enhances integration of IMS transactions as Web services for conversational composite business applications – Maximizes re-use of IMS applications for rapid business innovation and reduced costs p. 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. 32 .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 Web Service WebSphere Application Server IMS EJB TM RA Initiating Client z/OS OTMA Routing Descriptors IMS Connect XML Adapter Hold Q IMS App 1 (ISRT ALTPCB) Request Web Service SOAP Gateway Other Apps IMS App 2 Response p. Java EE (e. MDB/EJB) and RYO (e.g.Synchronous Callout   Enables IMS application to act as a client to invoke Web Services provider. SAP) applications Synchronously receive output back in the same IMS transaction instance p.g. 33 .IMS 10 SPE . 34 .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. And. other Solutions for calling out from IMS p.. 35 . XSLT engine for XML transformation .Provides an ESB solution .Web services (HTTP/SOAP) protocol support WebSphere Message Broker WebSphere Event Broker WebSphere MQ (including JMS) p.Powerful engine for message/data transformation and integration . Routing and Data Integration .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 MQPUT MQ MSG Transformation engine WebSphere MQ WebSphere Message Broker V6x XML Web service MQGET WebSphere Application Server Transformation. 36 . Calling a web service from DB2 p. : bbb ) END_EXEC.4 .user defined functions – References • SG24-7083 DB2 for z/OS Stored Procedures: Through the CALL and Beyond – Chapter 24. WebSphere Application Server Web service Stored procedure UDFs .2 . 01 bbb… ….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 01 aaa PIC X(30). EXEC SQL: CALL MYPROC ( :aaa .Accessing DB2 stored procedures from IMS • SG24-7064 WebSphere for z/OS V6 Connectivity Handbook – Chapter 13. 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 . 38 .Connecting to WebSphere from IMS using SOAP p. 39 .IMS and IBM SOA Foundation IMS and WebSphere/Rational development family p. IMS & the IBM SOA Foundation Rational Application Developer WebSphere Integration Developer Rational Developer for System z1 WebSphere Application Server & XD WebSphere Process Server WebSphere Message Broker WebSphere Transformation Extender F Rational Software Architect WebSphere Service Repository Registry2 F IMS TM Resource Adapter IMS DB Resource Adapter IMS SOAP Gateway IMS MFS SOA IMS MFS Web Enablement IMS DLI Model Utility3 IMS Info 2.Future Requirement p.0 F . 40 . C) IMS *MFS.IBM Rational Application Developer (RAD) IMS App Source (COBOL. *PL/I Source application IMS TM Resource IMS C Adapter Source application  Easy-to-use application development tool  Graphical and source editors  Modernize your IMS application – Parse existing IMS application source and generates Web app. 41 . EJB and Web Service – No need to change IMS application IMS COBOL Copybook application p. MFS. PLI. IBM WebSphere Integration Developer (WID) IMS TM Resource Adapter  Simplify and accelerate the development of integrated applications  Implements Service Component Architecture (SCA) technology and business process choreography  Industry-standard serviceoriented architecture p. 42 . correlator files from COBOL source and Web Service WSDL files  Support for IMS Info 2.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. 43 .g.0 – Generate correlator and XML converters from COBOL/PLI source files  Also includes features from RAD (e.x for IMS V10 users p. IMS TM RA tooling) ** Unwarranted two complimentary copies of RDz 7.1. Banking Center of Excellence IMS SOA Integration Suite IMS TM COBOL PL/I C Java MFS IMS DB DLI Data XML Data IMS SOAP Gateway IMS DLIModel Utility IMS Web 2. Web 2. SOAP. SCA/SDO. XQuery. Java.Denotes upcoming functions 44 44 © 2008 IBM Corporation . XML.0 Solutions IMS TM Resource Adapter IMS DB Resource Adapter WebSphere *IMS Open DB And Universal JDBC Drivers MFS Web Solutions *IMS Connect API IMS XQuery Service Oriented Architecture (SOA) Web Services.0 * . 45 .Access to IMS data SOA solutions for IMS DB p. . DLI Model Utility. IMS XML DB.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. 46 . IMS DB Resource Adapter. etc. EJB Stored Proc IMS DB Resource Adapter Java Virtual Machine IMS DB Resource Adapter Java Virtual Machine z/OS JCICS IMS DB Resource Adapter Java Virtual Machine ODBA DRA JMP JBP IMS DB Resource Adapter IMS DB Java Virtual Machine p. etc  JDBC driver for IMS – SQL access to IMS Data p. DB2 as well as GSAM databases  Access from IMS database from – IMS dependent regions.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. 47 . 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. IMS and DB2 databases – JBP access to IMS. program switching. 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 . 49 .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. 50 .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. 51 .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. 52 .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. JDBC access to IMS DB with DB Resource Adapter  WebSphere z/OS and IMS Java support WAS for z/OS IMS DB IMS DB Resource Resource adapter adapter HTTP Server EJB EJB (JDBC calls) (JDBC calls) IMS IMS DB DB (ODBA) (ODBA) z/OS  Support with IMS V9 – IMS Java Remote Data Services WAS Distributed Client side Client side EJB EJB application application Distributed Distributed IMS DB IMS DB Resource Resource adapter adapter EJB EJB (CM) (CM) EJB EJB (BM) (BM) WAS for z/OS IMS DB IMS DB Resource Resource adapter adapter IMS DB IMS DB (ODBA) (ODBA) z/OS  Support with IMS V11 – IMS Open Database and Universal JDBC Driver WAS Distributed or z/OS EJB EJB application application Universal Universal IMS DB IMS DB Resource Resource adapter adapter IMS IMS Connect Connect ODBM ODBM IMS DB IMS DB (ODBA) (ODBA) z/OS CM: container managed (supports global transaction semantics) p. 53 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 Final ODB of ODB Current Solution Evolution Solution Distributed WebSphere S O A P J C A T C P I 1.5 P z/OS LPAR A WAS z/OS T C P I P ODBM O S D C B I A IMS PC PC S C I IIOP O D B A CTL IMS DB LPAR B IIOP T C P I P IMS XCF S C I S C I WAS z/OS O D B A PC CTL IMS DB TCP/IP LPAR C JDBC Roll Your Own TCP/IP IMS S IMS Connect T C P I P S C I TCP/IP C I O D B A PC CTL IMS DB p. 55 . 56 .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. 57 .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 book PCB: BIB21 @year seq IMS DBD XML Documents BOOK YEAR TITLE PUBLISH PRICE xs:date title choice publisher price 0:oo 0:oo EDIT FIRST LAST FIRST AFFIL xs:string author editor xs:string xs:decimal AUTH LAST IMS Data seq seq last xs:string first xs:string last xs:string first xs:string affiliation xs:string p. 58 .0’?> <customer xmlns= ‘http://www…/PSB/PCB’> <cust> … <name> … </name> </cust> IMS Java Application XML Schema <?xml version=“1.0”’ encoding=“UTF-8”?> <xsd:schema xmlns:xsd= … … <xsd:element name=“cust”> … IMS DB WAS Distributed Client side Client side EJB EJB application application Distributed Distributed IMS DB IMS DB Resource Resource adapter adapter WAS for z/OS EJB EJB (CM) (CM) EJB EJB (BM) (BM) IMS DB IMS DB Resource Resource adapter adapter IMS DB IMS DB (ODBA) (ODBA) z/OS Java application that stores/retrieves XML documents can run in a distributed environment p.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) XML Document <?xml version=‘1. Web Services. Information as a Service  More natural fit for hierarchical data querying  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 Content Data p. 59 .XQuery support in IMS V10  Further aligns IMS with industry direction – XML. SOA. etc. <xsd:annotation> <xsd:appinfo> <ims:DLI mode="store" PSB=“MYPOPSB" PCB=“MYPOPCB" <xsd:element name=“A”> <xsd:element name=“field1" … DLIModel Generated XML schema XML document IMS V10 XQUERY API SELECT retrieveXML( B.an evolving standard API designed to query and format XML data IMS XQUERY processor . 60 .IMS DB XML APIs IMS V9 XML API XML CLOB <B> <f1> <f2> <f3> <B> </f1> </f2> </f3> SELECT retrieveXML( B) FROM PCB C WHERE C.Uses XML schemas generated by DLIModel IMS DB <xsd:annotation> <xsd:appinfo> <ims:DLI mode="store" PSB=“MYPOPSB" PCB=“MYPOPCB" <xsd:element name=“A”> <xsd:element name=“field1" … DLIModel Generated XML schema p.FIELD…. ‘for $x in /B where $x/@f1 = z return <namelist> {$x/B/f4} </namelist>’) FROM PCB C WHERE C.FIELD… B1 B B C1 Af1(x) A B2 <B> <f1> <f2> <f3> <B> </f1> </f2> </f3> D1 D2 C2f6(Y) Note: Segment Names ~ Table Names Segment Instances ~ Table Rows Field Names ~ Column Names XQUERY .Extends IMS XML DB . 61 .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 DLIModel Utility WebSphere Application Server EAR Config WSDL  Types  Interface  Binding  Service p. fields.x plug-in  p. types. 62 . etc  IMS database metadata generation tool – Generates the necessary metadata that is consumed at runtime by IMS DB Resource Adapter.DLIModel Utility  IMS database visualization tool – Visualize an entire IMS PSB – Can view each PCB individually • Hierarchy. segments. 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. Database Visualization (UML View of the Database Metadata) p. 63 . 64 .AND … Other IBM Solutions for accessing IMS DB p. HP-UX.ibm. Wintel Portal ASP BI Tool Servlet Servlet JDBC Client Client Class ODBC client EJB Metadata Catalog WebSphere Classic Federation Server for z/OS DB2 UDB for z/OS VSAM IMS Software AG CA Adabas Datacom CA IDMS •http://www-306. 65 . Solaris. Linux.com/software/data/integration/iicf/support.Information Integration  Websphere Classic Federation Server for z/OS – Integrates access to a variety of resources • ODBC.html p. JDBC access to IMS data – Read and update access to IMS DB using JDBC and ODBC • Access to IMS transactions AIX. 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. MQ calls. db calls. 66 .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. NET Client Client Developer SOAP Direct SOAP IMS SOAP Gateway TCP /IP SAP Client Application developer IMS APP Java class Library DL/I SQL XQuery DL/I CICS Developer RDz REST Service Java class Library Database DB2 SP/CICS Java class Library WebSphere InfoSphere MashupHub IMS Web 2.IMS SOA solutions .0 Mashup Business / IT user HTTP DLI Model Utility DLI Model Utility DB2 Developer p.Summary Web service clients Java/J2EE Client Java dev No additional cost for IMS licensed users Direct Database access Developers Solutions WID RAD Solutions DLI Model Utility WebSphere Web Service IMS TM Resource Adapter MFS Web Services IMS Transaction manager IMS Connect Database manager ODBA /DRA WebSphere IMS DB Resource Adapter Java class Library Java /J2EE Developer . 67 .0 Solution Web 2. 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 .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. ibm. 70 . also includes XQuery support  IMS Info 2. and XML-DB support • IMS V8 (JMK8806) • IMS V9 (JMK9906).alphaworks.com/watch?v=BWJGSC-RyXQ p.0 – IBM Mashup Starter Kit is available on both IMS and IBM Alphaworks website • http:/www.youtube.com/tech/ibmmsk – IMS Info 2.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. also includes XML-DB support • IMS V10 (JMK1016). JDBC driver.How Do I Get It?  IMS SOA Integration Suites – http://www.0 demo video on YouTube • http://www.ibm. com/software/awdtools/rdz p.ibm.ibm.com/software/integration/wid/about  Rational Developer for System z http://www. 71 .How Do I Get It? …  Rational Application Developer http://www.ibm.html  WebSphere Integration Developer http://www.com/software/awdtools/developer/application/index.
Copyright © 2024 DOKUMEN.SITE Inc.