Connecting Enterprise Applications to Websphere Enterprise Service Bus
Total Page:16
File Type:pdf, Size:1020Kb
Front cover Connecting Enterprise Applications to WebSphere Enterprise Service Bus Patterns with worked examples for many integration scenarios Code-free connection to CICS using WebSphere MQ Integrate Web 2.0 into the service bus Peter Swithinbank Srinivas Bandaru Graham Crooks Andrew Ferrier Jenny He Raghunath Krishnaswamy Vijay Mann Muriel Viale ibm.com/redbooks International Technical Support Organization Connecting Enterprise Applications to WebSphere Enterprise Service Bus September 2007 SG24-7406-00 Note: Before using this information and the product it supports, read the information in “Notices” on page xi. First Edition (September 2007) This edition applies to Version 6.0.2 of WebSphere Enterprise Service Bus. © Copyright International Business Machines Corporation 2007. All rights reserved. Note to U.S. Government Users Restricted Rights -- Use, duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp. Contents Notices . xi Trademarks . xii Preface . xiii Choice of examples. xv Audience . xv The team that wrote this book . xvi Become a published author . xix Comments welcome. xx Part 1. Background . 1 Chapter 1. Connecting enterprise applications . 3 1.1 Introduction to integration . 4 1.1.1 Process-focused integration . 4 1.1.2 Data-focused integration . 4 1.1.3 Which pattern of application integration . 6 1.2 EAI patterns. 8 1.2.1 Direct connection or point-to-point integration . 8 1.2.2 Broker or hub and spoke integration . 9 1.2.3 Serial Process . 9 1.2.4 Parallel Process . 9 1.3 Evolution of Enterprise Application Integration (EAI) . 10 1.3.1 Incompatible architectures . 11 1.3.2 Batch-oriented applications written in silos . 11 1.3.3 Data sharing through files . 13 1.3.4 Near real-time communication - Client Server Systems . 13 1.3.5 Point-to-point integration with Remote Procedure Calls (RPCs). 14 1.3.6 Message Oriented Middleware . 16 1.3.7 Adapters . 18 1.3.8 Message Brokering . 19 1.3.9 Data synchronization. 21 1.3.10 Business process management . 21 1.3.11 Impact of the Internet and emergence of Web services . 22 1.3.12 Web 2.0. 23 1.4 Service-oriented architecture (SOA) . 25 1.4.1 Definition of a service . 26 1.4.2 SOA and Web services . 26 1.4.3 SOA and EAI. 27 © Copyright IBM Corp. 2007. All rights reserved. iii 1.4.4 Enterprise Service Bus (ESB) . 28 1.4.5 SOA reference architecture. 33 1.4.6 SOA programming model . 35 1.5 Building an SOA - IBM software offerings . 37 1.5.1 WebSphere MQ and Extended Security Edition . 40 1.5.2 WebSphere Message Broker . 40 1.5.3 WebSphere Enterprise Service Bus . 41 1.5.4 WebSphere adapters . 41 1.5.5 WebSphere DataPower Integration Appliances . 42 1.5.6 WebSphere Process Server . 42 1.5.7 WebSphere Partner Gateway . 42 1.5.8 WebSphere Service Registry and Repository. 43 1.5.9 IBM WebSphere Business Integration for Financial Networks . 43 1.5.10 WebSphere Business Services Fabric . 43 1.6 Web 2.0 - next generation Web services . 43 1.6.1 Communicating over HTTP using non SOAP data . 44 1.6.2 An example SOAP message. 44 1.6.3 Web service expecting non standard SOAP headers . 45 1.6.4 XML-RPC . 46 1.6.5 REST. 47 1.6.6 JSON RPC . 48 1.7 Summary . 50 Chapter 2. Service Component Architecture . 51 2.1 Service Component Architecture. 52 2.2 Service Data Objects. 59 Chapter 3. Connecting to the WebSphere Enterprise Service Bus . 63 3.1 Overview of WebSphere Enterprise Service Bus . 65 3.2 Business objects . 67 3.3 Data Bindings . 68 3.4 WebSphere Enterprise Service Bus SCA Components . 69 3.4.1 Java components . 69 3.4.2 Mediation flow components . 73 3.5 WebSphere ESB Transport Binding Types . 82 3.5.1 SCA default bindings . 82 3.5.2 Web services bindings . 82 3.5.3 JMS bindings . 83 3.5.4 MQ native and MQ/JMS bindings . 89 3.5.5 Stateless session bean bindings . 96 3.5.6 EIS bindings . 97 3.5.7 Stand-alone references . 97 3.6 Reference table of possible connection types. 98 iv Connecting Enterprise Applications to WebSphere Enterprise Service Bus 3.7 J2EE and WebSphere Application Server technology underlying WebSphere ESB . 99 3.8 Using clients with WebSphere ESB . 103 3.8.1 XMS clients . 104 3.8.2 Web services client . 104 3.9 Other SCA component types in the WebSphere family . 105 Chapter 4. Adapters . 107 4.1 Why use an adapter . 108 4.2 WebSphere JCA adapters. 109 4.2.1 JCA background . 110 4.2.2 JCA technical overview . 111 4.2.3 Base JCA resource adapters . 113 4.2.4 WebSphere JCA Adapter . 114 4.2.5 Different types of WebSphere JCA Adapters . 115 4.2.6 Custom WebSphere JCA Adapters. 118 4.3 WebSphere Business Integration adapter. 119 4.3.1 WBI Adapter . ..