Websphere MQ V6 Fundamentals
Total Page:16
File Type:pdf, Size:1020Kb
Front cover WebSphere MQ V6 Fundamentals Overview of message queuing and WebSphere MQ V6.0 Broad technical introduction to the Websphere MQ product Hands-on guide to the first steps of building a WebSphere MQ infrastructure Saida Davies Peter Broadhurst ibm.com/redbooks International Technical Support Organization WebSphere MQ V6 Fundamentals November 2005 SG24-7128-00 Note: Before using this information and the product it supports, read the information in “Notices” on page xv. First Edition (November 2005) This IBM Redbook edition is an update to the Redpaper MQSeries Primer, REDP-0021. This edition applies to Version 6, Release 0, Modification 0, of IBM WebSphere MQ (product number 5724-H72). © Copyright International Business Machines Corporation 2005. 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 . xv Trademarks . xvi Preface . xvii The team that wrote this redbook. xvii Become a published author . xix Comments welcome. xx Summary of changes . xxi November 2005 . xxi Chapter 1. Overview . 1 Chapter 2. Concepts of message queuing . 5 2.1 Core concepts . 6 2.1.1 Middleware . 6 2.1.2 Messages . 7 2.1.3 Queues . 7 2.1.4 Point-to-point messaging . 9 2.1.5 Publish/subscribe messaging . 10 2.2 Simplification . 12 2.2.1 Development focuses on business logic . 12 2.2.2 Application maintenance and portability . 13 2.3 Scalability and performance . 14 2.4 Reliability and data integrity . 16 2.4.1 Exactly once delivery . 16 2.4.2 Units of work . 17 2.4.3 Failure handling. 17 2.4.4 Quality assurance (QA) environments . 18 2.5 Security . 19 2.5.1 Security of access . 19 2.5.2 Security of communications . 20 2.6 High availability . 20 2.6.1 Service availability. 21 2.6.2 Message availability . 21 2.6.3 Disaster recovery . 22 2.7 Monitoring and accounting . 22 2.7.1 Performance monitoring . 22 2.7.2 Accounting . 23 © Copyright IBM Corp. 2005. All rights reserved. iii Chapter 3. Facilities for message queuing provided by WebSphere MQ. 25 3.1 Core concepts . 26 3.1.1 WebSphere MQ message queuing infrastructure . 26 3.1.2 Facilities for building a WebSphere MQ infrastructure . 26 3.1.3 SupportPacs . 27 3.2 Simplification . 28 3.2.1 Applications accessing a WebSphere MQ infrastructure . 28 3.2.2 Asynchronous intercommunication using WebSphere MQ. 29 3.2.3 Generalizing destinations using WebSphere MQ . 29 3.2.4 Specific destinations using WebSphere MQ . 30 3.2.5 Providing services within a WebSphere MQ infrastructure . 30 3.2.6 WebSphere MQ queues as an interface for accessing services. 30 3.2.7 Standardized application programming interfaces (APIs) . 31 3.2.8 WebSphere MQ and WebSphere Application Server . 32 3.2.9 Web services as an interface for accessing services . 33 3.2.10 Simplification of failure handling with WebSphere MQ . 34 3.3 Scalability and performance . 35 3.3.1 Scalability features of WebSphere MQ queue managers . 35 3.3.2 An architecture based on a single queue manager. 36 3.3.3 Hub and spoke WebSphere MQ architectures . 37 3.3.4 Flexibly scaling capacity using queue manager clusters . 39 3.4 Reliability and data integrity . 40 3.4.1 Persistent and nonpersistent messages . 41 3.4.2 Units of work . 42 3.5 Security . 43 3.5.1 The Object Authority Manager (OAM). 43 3.5.2 Secure Sockets Layer (SSL) and Transport Layer Security (TLS) . 43 3.5.3 Securing communication using SSL or TLS . 44 3.6 High availability . 44 3.6.1 The role of queue manager clusters in high-service availability . 45 3.6.2 Queue sharing groups on WebSphere MQ for z/OS. 45 3.6.3 High availability clusters . 46 3.6.4 Disaster recovery . 47 3.7 Monitoring and accounting . 48 3.7.1 Performance monitoring . 48 3.7.2 Accounting . 48 3.7.3 Trace-route messaging . 48 Chapter 4. Designing applications that access a WebSphere MQ infrastructure. 49 4.1 Cross-platform support . 50 4.2 Application programming interfaces (APIs) . 50 4.2.1 The message queue interface (MQI) . 50 iv WebSphere MQ V6 Fundamentals 4.2.2 APIs based on the WebSphere MQ object model. 51 4.2.3 Standardized APIs available for WebSphere MQ . 52 4.2.4 Custom adapters. 55 4.3 WebSphere MQ messages . 55 4.3.1 The message descriptor . 55 4.3.2 Data conversion . 56 4.3.3 Message formats. 57 4.3.4 Chaining portions of a message together . 57 4.4 Interacting with a WebSphere MQ infrastructure . 58 4.4.1 WebSphere MQ client products . 59 4.4.2 Core facilities provided to a WebSphere MQ application . 59 4.5 Units of work and transactions . 61 4.5.1 Local units of work . 61 4.5.2 Syncpoint . 62 4.5.3 Commit and back out . 62 4.5.4 Uncommitted messages . 62 4.5.5 Global units of work. 63 4.5.6 Coordination of global units of work . 64 4.5.7 Two-phase commit . ..