Implementing IBM CICS JSON Web Services for Mobile Applications IBM Redbooks Solution Guide

Similar documents
Enterprise Caching in a Mobile Environment IBM Redbooks Solution Guide

Implementing IBM Easy Tier with IBM Real-time Compression IBM Redbooks Solution Guide

IBM z/os Management Facility V2R1 Solution Guide IBM Redbooks Solution Guide

ServeRAID-MR10i SAS/SATA Controller IBM System x at-a-glance guide

Continuous Availability with the IBM DB2 purescale Feature IBM Redbooks Solution Guide

Optimizing Data Integration Solutions by Customizing the IBM InfoSphere Information Server Deployment Architecture IBM Redbooks Solution Guide

Designing a Reference Architecture for Virtualized Environments Using IBM System Storage N series IBM Redbooks Solution Guide

Using the IBM DS8870 in an OpenStack Cloud Environment IBM Redbooks Solution Guide

Elastic Caching with IBM WebSphere extreme Scale IBM Redbooks Solution Guide

Emulex 8Gb Fibre Channel Single-port and Dual-port HBAs for IBM System x IBM System x at-a-glance guide

ServeRAID-BR10il SAS/SATA Controller v2 for IBM System x IBM System x at-a-glance guide

IBM 6 Gb Performance Optimized HBA IBM Redbooks Product Guide

Best practices. Starting and stopping IBM Platform Symphony Developer Edition on a two-host Microsoft Windows cluster. IBM Platform Symphony

IBM PowerKVM available with the Linux only scale-out servers IBM Redbooks Solution Guide

Tivoli Storage Manager for Virtual Environments: Data Protection for VMware Solution Design Considerations IBM Redbooks Solution Guide

Integrated Management Module (IMM) Support on IBM System x and BladeCenter Servers

IBM High IOPS SSD PCIe Adapters IBM System x at-a-glance guide

2-Port 40 Gb InfiniBand Expansion Card (CFFh) for IBM BladeCenter IBM BladeCenter at-a-glance guide

Platform LSF Version 9 Release 1.1. Migrating on Windows SC

IBM Operational Decision Manager Version 8 Release 5. Configuring Operational Decision Manager on Java SE

Best practices. Reducing concurrent SIM connection requests to SSM for Windows IBM Platform Symphony

Flexible, High-Performing, Security-Rich, and Scalable Connectivity with CICS Transaction Gateway Products IBM Redbooks Solution Guide

Utility Capacity on Demand: What Utility CoD Is and How to Use It

Best practices. Linux system tuning for heavilyloaded. IBM Platform Symphony

Optimizing Database Administration with IBM DB2 Autonomics for z/os IBM Redbooks Solution Guide

Platform LSF Version 9 Release 1.3. Migrating on Windows SC

Version 9 Release 0. IBM i2 Analyst's Notebook Configuration IBM

SAS Connectivity Card (CIOv) for IBM BladeCenter IBM Redbooks Product Guide

IBM Storage Driver for OpenStack Version Release Notes

N2225 and N2226 SAS/SATA HBAs for IBM System x IBM Redbooks Product Guide

Integrated use of IBM WebSphere Adapter for Siebel and SAP with WPS Relationship Service. Quick Start Scenarios

Version 9 Release 0. IBM i2 Analyst's Notebook Premium Configuration IBM

IBM Flex System FC port 8Gb FC Adapter IBM Redbooks Product Guide

IMS and VSAM replication using GDPS IBM Redbooks Solution Guide

IBM BigInsights Security Implementation: Part 1 Introduction to Security Architecture

Broadcom NetXtreme Gigabit Ethernet Adapters IBM Redbooks Product Guide

ServeRAID M1015 SAS/SATA Controller for System x IBM System x at-a-glance guide

From Development to Production with the IBM WebSphere Application Server Liberty Profile IBM Redbooks Solution Guide

IMM and IMM2 Support on IBM System x and BladeCenter Servers

IBM 1U Switched and Monitored Power Distribution Units IBM System x at-a-glance guide

IBM. IBM i2 Enterprise Insight Analysis Understanding the Deployment Patterns. Version 2 Release 1 BA

Application and Database Protection in a VMware vsphere Environment

IBM Spectrum LSF Process Manager Version 10 Release 1. Release Notes IBM GI

IBM Operational Decision Manager. Version Sample deployment for Operational Decision Manager for z/os artifact migration

IBM WebSphere Sample Adapter for Enterprise Information System Simulator Deployment and Testing on WPS 7.0. Quick Start Scenarios

Achieving Higher Levels of Productivity with IBM ISPF Productivity Tool for z/os IBM Redbooks Solution Guide

Version 2 Release 1. IBM i2 Enterprise Insight Analysis Understanding the Deployment Patterns IBM BA

Using application properties in IBM Cúram Social Program Management JUnit tests

Automated Conversions to IBM DB2 for z/os IBM Redbooks Solution Guide

Reliability and Performance with IBM DB2 Analytics Accelerator Version 4.1 IBM Redbooks Solution Guide

ServeRAID M5025 SAS/SATA Controller for IBM System x IBM System x at-a-glance guide

Migrating Classifications with Migration Manager

IBM Maximo for Service Providers Version 7 Release 6. Installation Guide

CONFIGURING SSO FOR FILENET P8 DOCUMENTS

Netcool/Impact Version Release Notes GI

Release Notes. IBM Tivoli Identity Manager Rational ClearQuest Adapter for TDI 7.0. Version First Edition (January 15, 2011)

Getting Started with InfoSphere Streams Quick Start Edition (VMware)

Broadcom NetXtreme 10 GbE SFP+ Network Adapter Family for System x IBM Redbooks Product Guide

IBM Cloud Orchestrator. Content Pack for IBM Endpoint Manager for Software Distribution IBM

A Quick Look at IBM SmartCloud Monitoring. Author: Larry McWilliams, IBM Tivoli Integration of Competency Document Version 1, Update:

IBM License Metric Tool Enablement Guide

IBM Flex System FC5024D 4-port 16Gb FC Adapter IBM Redbooks Product Guide

Contents. Configuring AD SSO for Platform Symphony API Page 2 of 8

iscsi Configuration Manager Version 2.0

IBM Maximo Calibration Version 7 Release 5. Installation Guide

ios 9 support in IBM MobileFirst Platform Foundation IBM

IBM emessage Version 8.x and higher. Account Startup Overview

Redpaper. IBM Tivoli Access Manager for e-business: Junctions and Links. Overview. URLs, links, and junctions. Axel Buecker Ori Pomerantz

Version 2 Release 1. IBM i2 Enterprise Insight Analysis Maintaining a deployment IBM

Installing Watson Content Analytics 3.5 Fix Pack 1 on WebSphere Application Server Network Deployment 8.5.5

Tivoli Access Manager for Enterprise Single Sign-On

IBM LoadLeveler Version 5 Release 1. Documentation Update: IBM LoadLeveler Version 5 Release 1 IBM

IBM. IBM i2 Analyze Windows Upgrade Guide. Version 4 Release 1 SC

IBM Maximo for Aviation MRO Version 7 Release 6. Installation Guide IBM

Build integration overview: Rational Team Concert and IBM UrbanCode Deploy

Deploying a Grid Solution with IBM InfoSphere Information Server IBM Redbooks Solution Guide

IBM Operations Analytics - Log Analysis: Network Manager Insight Pack Version 1 Release 4.1 GI IBM

IBM Storage Management Pack for Microsoft System Center Operations Manager (SCOM) Version Release Notes

Emulex 10GbE Virtual Fabric Adapter II for IBM BladeCenter IBM Redbooks Product Guide

IBM Cognos Dynamic Query Analyzer Version Installation and Configuration Guide IBM

IBM Rational Development and Test Environment for System z Version Release Letter GI

IBM Maximo Spatial Asset Management Version 7 Release 6. Installation Guide IBM

IBM Ethernet Switch J48E

IBM. Networking INETD. IBM i. Version 7.2

IBM Kenexa LCMS Premier on Cloud. Release Notes. Version 9.3

IBM Tivoli Monitoring for Databases. Release Notes. Version SC

IBM Storage Driver for OpenStack Version Release Notes

IBM Security QRadar Version Customizing the Right-Click Menu Technical Note

IBM. IBM i2 Enterprise Insight Analysis User Guide. Version 2 Release 1

Release Notes. IBM Security Identity Manager GroupWise Adapter. Version First Edition (September 13, 2013)

IBM Rational Synergy DCM-GUI

IBM Mainframe Makeover: What Powers your Mobile Applications and Smart Phones?

IBM Netcool/OMNIbus 8.1 Web GUI Event List: sending NodeClickedOn data using Netcool/Impact. Licensed Materials Property of IBM

IBM Security QRadar Version Forwarding Logs Using Tail2Syslog Technical Note

Managing IBM Db2 Analytics Accelerator by using IBM Data Server Manager 1

Tivoli Access Manager for Enterprise Single Sign-On

IBM OpenPages GRC Platform - Version Interim Fix 1. Interim Fix ReadMe

Broadcom NetXtreme 10 GbE SFP+ Network Adapter Family for System x IBM Redbooks Product Guide

IBM Endpoint Manager Version 9.1. Patch Management for Ubuntu User's Guide

IBM Spectrum LSF Version 10 Release 1. Readme IBM

Transcription:

Implementing IBM CICS JSON Web Services for Mobile Applications IBM Redbooks Solution Guide This IBM Redbooks Solution Guide describes the existing and new aspects of IBM CICS Transaction Server that allow you to move your CICS applications, and business, into the mobile space. This Solution Guide gives you an overview of how to connect mobile devices to IBM CICS Transaction Server, to use existing enterprise services that are hosted on CICS, or to develop services that support new lines of business (LOB). We summarize the steps to develop, configure, and deploy a mobile application that connects either directly to CICS Transaction Server or to CICS through IBM Worklight Server. Figure 1 gives an overview of this solution. Figure 1. IBM CICS JSON Web Services for Mobile Applications overview Implementing IBM CICS JSON Web Services for Mobile Applications 1

Did you know? For many years, CICS Transaction Server has been capable of hosting mobile enterprise services. The introduction of web services capabilities in CICS Transaction Server V3 provided the fundamental building blocks of service connectivity, enabling the adoption of a service-oriented architecture (SOA), and underpinning today s mobile solutions. CICS developers continue to add capabilities to the run time. From a mobile perspective, the introduction of the CICS TS Feature Pack for Mobile Extensions provides JSON and RESTful web service support, further enhancing the options for enterprise applications to mobile devices. Customers around the world use CICS Transaction Server to host hundreds of millions, and in some cases billions, of transactions per day. As the number of mobile devices worldwide continues to grow, so does the variety and volume of workload that they drive. CICS has the capacity to scale up in support of this increasing mobile workload, providing an exceptional platform for hosting mobile workloads. Business value By extending existing enterprise applications onto a mobile platform, a business can capitalize on its existing investment without needing to develop a new solution to support mobile services. In addition, a LOB can now offer service to consumers who increasingly expect to be able to interact with a company by using their mobile phone. As a platform, here are the primary benefits that are offered by CICS in support of mobile devices: Reuse of existing enterprise services. Using the proven web service technology within CICS, it is relatively simple to build a set of enterprise services that can be used by a mobile device. Simplified consumption of enterprise data using Java script Object Notation (JSON) formatted data. A common misconception is that enterprise data within CICS can be hard to use. The CICS TS Feature Pack for Mobile Extensions provides support for JSON data, which is rapidly becoming the de facto standard format for data interchange on mobile devices. CICS operates at the heart of the enterprise. Hosting mobile applications within CICS brings them closer to the enterprise data they are accessing, minimizing application path-lengths and keeping response times down. Adopt a RESTful architectural style for service delivery. A RESTful architectural style is one where the target resource, and the operation to be performed against it, are defined by a combination of a structured URI and one of the four HTTP methods: Get, Post, Put, and Delete. Capacity to manage mobile workload. As noted earlier, customers around the world use CICS Transaction Server to host hundreds of millions, and in some cases billions, of transactions per day. CICS Workload Management provides a robust and scalable platform suitable for supporting the heaviest of mobile workloads. Implementing IBM CICS JSON Web Services for Mobile Applications 2

Solution overview We introduce four different approaches to building mobile services within CICS Transaction Server. Here are summaries of the four approaches: The top-down approach The top-down approach, which is shown in Figure 2, is the preferred method of building new enterprise services for mobile application within CICS. This approach lends itself to the RESTful architectural style where the target resource, and the operation to be performed against it, are defined by a combination of a structured URI and one of the four HTTP methods: Get, Post, Put, and Delete. This approach allows you to create a set of services with a concise interface. Figure 2. Top-down - a possible way to implement a JSON web service starting from the JSON schema Implementing IBM CICS JSON Web Services for Mobile Applications 3

Bottom-up The bottom-up approach, which is shown in Figure 3, is perhaps the fastest approach for delivering enterprise services to mobile devices. Building on an existing SOA, the bottom-up approach allows you to define a JSON or SOAP interface to an existing COBOL, C/C++, PL/I, or Java application. This approach maximizes the reuse of existing assets, and minimizes the creation of new components. Figure 3. Bottom up - an architecture that allows you to configure and enable a JSON web service that driven by your high-level language data structure Implementing IBM CICS JSON Web Services for Mobile Applications 4

Requester mode The requester mode approach, which is shown in Figure 4, allows CICS to participate in JSON-based interactions using LINK, and to make requests against external service providers that offer a JSON-based interface. Although it is not strictly a pure mobile scenario, the capabilities that are offered by the CICS TS Feature Pack for Mobile Extensions provide CICS with additional options for connecting to the wider enterprise using JSON formatted data. Figure 4. LINKable - a LINKable CICS program can be used to transform your data between high-level data structures and JSON Implementing IBM CICS JSON Web Services for Mobile Applications 5

JAX-RS JAX-RS is a Java API for RESTful web services. As shown in Figure 5, it is a programming interface that provides support in creating web services according to the Representational State Transfer (REST) architectural pattern. REST is an architecture style for designing networked applications without needing complex mechanisms, such as CORBA or SOAP. The pattern involves client/server communications where the state of an application is held by the client, which reduces the processing that is required on the server. Using the IBM WebSphere Liberty Profile provided in CICS TS V5.1, you can write your business applications by using JAX-RS. Figure 5. JAX-RS - JAX-RS provides rapid and easy development and deployment of RESTful enabled Java applications Solution architecture The architecture for an enterprise mobile solution that is based on CICS varies depending on the business requirements and the business data that the applications require. We describe two solution architectures: direct to CICS and a two tier Mobile - Worklight - CICS solution. The direct to CICS solution is one where the mobile devices communicate directly to CICS. In this architecture, other devices communicate with CICS through the existing web services that are provided through CICS. This scenario is ideal when the devices and networks that are involved are all trusted, and the applications that are involved do not require frequent updates or do not run on multiple platforms. An alternative solution is an architecture with one or more layers between CICS and the user devices. IBM Worklight is a solution that provides governance and security for your mobile applications along with a powerful SDK for rapid development of your enterprise applications on most major platforms. In this architecture, the mobile devices communicate with the IBM Worklight Server to ensure that the device has the correct privileges to make the request to CICS. If this request is approved, it is sent to CICS and the CICS application is run. IBM Worklight also manages the versioning of applications, allowing a new version of the application to be created without needing multiple version of the back-end business applications with the logic to handle the different requests. Features such as notifications on the different platforms are also handled and standardized by IBM Worklight. Implementing IBM CICS JSON Web Services for Mobile Applications 6

Figure 6 shows a typical architecture of how IBM Worklight and IBM CICS TS can be used in conjunction to extend the reach of your CICS applications to a mobile platform. Figure 6. A typical implementation of IBM Worklight and IBM CICS TS to enable mobile devices to access services that are hosted on CICS TS Usage scenarios The following scenarios show three ways in which CICS TS can be used to solve your enterprise mobile business solutions: As an insurance company, you want your policy holders to be able to view and makes claims on their policies directly from their mobile device. To remain competitive, the mobile application must be available as soon as possible. To facilitate rapid development and provide your services that are hosted on CICS to the application, you choose to take the bottom-up approach. Using your COBOL copy books, you generate the JSON schema that allows the mobile application to communicate with CICS web services with a lightweight payload. CICS manages the transformation between the JSON and COBOL copy book structure and your CICS services are made available. As a CICS Service provider, you have a business requirement to make your CICS applications available through a standardized RESTful pattern. By using the top-down approach, you can externalize your existing and new CICS services through a RESTful architecture, which allows your services to be called through a unified approach that is understood throughout the business As an airline carrier, you need data from your business partners to accurately allocate seating through your on demand ticket purchasing system. You are informed that your business partner externalizes their services only through a RESTful pattern with JSON as the data format of choice. You can use the new CICS provided LINKable program along with the existing CICS web API to communicate with the business partner without the added cost of development and maintaining a bespoke communication layer. Implementing IBM CICS JSON Web Services for Mobile Applications 7

Integration CICS enterprise mobile solutions can be deployed in a product stack with the following IBM products: IBM Worklight is a hybrid mobile solution offering governance and a powerful SDK to build applications with a server component that drives the mobile world. IBM DataPower allows you to secure, integrate, and optimize SOA capabilities that scale. In addition, your CICS Enterprise mobile solutions work with the existing solutions that you are familiar with along with CICS Transaction Server: IBM WebSphere MQ IBM DB2 IBM Integration Bus (formerly, IBM WebSphere Message Broker) Supported platforms CICS web service support is available from CICS Transaction Server V3 onward. For more information about CICS Transaction Server V3 requirements, see http://www-01.ibm.com/software/htp/cics/tserver/sysreqs/. CICS Transaction Server Feature Pack for Mobile Extensions V1.0 is available on CICS TS V4.2 and CICS TS V5.1. For more information about the requirements of CICS Transaction Server Feature Pack for Mobile Extensions V1.0, see http://www-01.ibm.com/software/htp/cics/tserver/sysreqs/. Ordering information This product is available only through IBM Shopz. It lists the components of IBM CICS Transaction Server that you may use for enabling your CICS enterprise mobile solutions. Table 1 shows the ordering part numbers and feature codes. You can access IBM Shopz at the following website: https://steamboat.boulder.ibm.com/webapp/shopzseries/shopzseriesiip.jsp Table 1. Ordering part numbers and feature codes Product name Product ID CICS Transaction Server Feature Pack for Mobile Extensions V1.0 5655-Y48 CICS Transaction Server V5.1 5655-Y04 CICS Transaction Server V4.2 5655-S97 Related information For more information, see the following documents: IBM CICS Transaction Server, SG24-8161 http://www.redbooks.ibm.com/abstracts/sg248161.html IBM CICS Transaction Server product page http://ibm.com/software/products/us/en/cics-tservers Implementing IBM CICS JSON Web Services for Mobile Applications 8

IBM Offering Information page (announcement letters and sales manuals): http://www.ibm.com/common/ssi/index.wss?request_locale=en On this page, enter products/us/en/cics-tservers, select the information type, and then click Search. On the next page, narrow your search results by geography and language. Implementing IBM CICS JSON Web Services for Mobile Applications 9

Notices This information was developed for products and services offered in the U.S.A. IBM may not offer the products, services, or features discussed in this document in other countries. Consult your local IBM representative for information on the products and services currently available in your area. Any reference to an IBM product, program, or service is not intended to state or imply that only that IBM product, program, or service may be used. Any functionally equivalent product, program, or service that does not infringe any IBM intellectual property right may be used instead. However, it is the user's responsibility to evaluate and verify the operation of any non-ibm product, program, or service. IBM may have patents or pending patent applications covering subject matter described in this document. The furnishing of this document does not give you any license to these patents. You can send license inquiries, in writing, to: IBM Director of Licensing, IBM Corporation, North Castle Drive, Armonk, NY 10504-1785 U.S.A. The following paragraph does not apply to the United Kingdom or any other country where such provisions are inconsistent with local law : INTERNATIONAL BUSINESS MACHINES CORPORATION PROVIDES THIS PUBLICATION "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF NON-INFRINGEMENT, MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE. Some states do not allow disclaimer of express or implied warranties in certain transactions, therefore, this statement may not apply to you. This information could include technical inaccuracies or typographical errors. Changes are periodically made to the information herein; these changes will be incorporated in new editions of the publication. IBM may make improvements and/or changes in the product(s) and/or the program(s) described in this publication at any time without notice. Any references in this information to non-ibm Web sites are provided for convenience only and do not in any manner serve as an endorsement of those Web sites. The materials at those Web sites are not part of the materials for this IBM product and use of those Web sites is at your own risk.ibm may use or distribute any of the information you supply in any way it believes appropriate without incurring any obligation to you. Information concerning non-ibm products was obtained from the suppliers of those products, their published announcements or other publicly available sources. IBM has not tested those products and cannot confirm the accuracy of performance, compatibility or any other claims related to non-ibm products. Questions on the capabilities of non-ibm products should be addressed to the suppliers of those products. This information contains examples of data and reports used in daily business operations. To illustrate them as completely as possible, the examples include the names of individuals, companies, brands, and products. All of these names are fictitious and any similarity to the names and addresses used by an actual business enterprise is entirely coincidental. Any performance data contained herein was determined in a controlled environment. Therefore, the results obtained in other operating environments may vary significantly. Some measurements may have been made on development-level systems and there is no guarantee that these measurements will be the same on generally available systems. Furthermore, some measurement may have been estimated through extrapolation. Actual results may vary. Users of this document should verify the applicable data for their specific environment. COPYRIGHT LICENSE: This information contains sample application programs in source language, which illustrate programming techniques on various operating platforms. You may copy, modify, and distribute these sample programs in any form without payment to IBM, for the purposes of developing, using, marketing or distributing application programs conforming to the application programming interface for the operating platform for which the sample programs are written. These examples have not been thoroughly tested under all conditions. IBM, therefore, cannot guarantee or imply reliability, serviceability, or function of these programs. Copyright International Business Machines Corporation 2013. All rights reserved. Note to U.S. Government Users Restricted Rights -- Use, duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp. Implementing IBM CICS JSON Web Services for Mobile Applications 10

This document was created or updated on September 19, 2013. Send us your comments in one of the following ways: Use the online Contact us review form found at: ibm.com/redbooks Send your comments in an e-mail to: redbook@us.ibm.com Mail your comments to: IBM Corporation, International Technical Support Organization Dept. HYTD Mail Station P099 2455 South Road Poughkeepsie, NY 12601-5400 U.S.A. This document is available online at http://www.ibm.com/redbooks/abstracts/tips1066.html. Trademarks IBM, the IBM logo, and ibm.com are trademarks or registered trademarks of International Business Machines Corporation in the United States, other countries, or both. These and other IBM trademarked terms are marked on their first occurrence in this information with the appropriate symbol ( or ), indicating US registered or common law trademarks owned by IBM at the time this information was published. Such trademarks may also be registered or common law trademarks in other countries. A current list of IBM trademarks is available on the web at http://www.ibm.com/legal/copytrade.shtml. The following terms are trademarks of the International Business Machines Corporation in the United States, other countries, or both: CICS DataPower DB2 IBM Redbooks Redbooks (logo) WebSphere The following terms are trademarks of other companies: Worklight is trademark or registered trademark of Worklight, an IBM Company. Linux is a trademark of Linus Torvalds in the United States, other countries, or both. Java, and all Java-based trademarks and logos are trademarks or registered trademarks of Oracle and/or its affiliates. Other company, product, or service names may be trademarks or service marks of others. Implementing IBM CICS JSON Web Services for Mobile Applications 11