Websphere MQ V7.1 Features and Enhancements
Total Page:16
File Type:pdf, Size:1020Kb
Front cover WebSphere MQ V7.0 Features and Enhancements Integrated Publish/Subscribe engine and new MQI functions Improved JMS MQ integration and MQ Client enhancements Scenario with sample code Saida Davies Glenn Baddeley Martin Cernicky Brian Cuttell Ruchir P Jha Bulent Sapolyo Akhila Shivaprasad Vicente Suarez Lohitashwa Thyagaraj ibm.com/redbooks International Technical Support Organization WebSphere MQ V7.0 Features and Enhancements January 2009 SG24-7583-00 Note: Before using this information and the product it supports, read the information in “Notices” on page xxi. First Edition (January 2009) This edition applies to: Version Release Modification Product name 7 0 0 WebSphere MQ 6 0 2.2 WebSphere MQ Client (SupportPac MQC6) 6 1 0 WebSphere Application Server 1 6 0_03 Java JRE (Sun™ Java™ SE Runtime Environment) 6 0 2 Microsoft Internet Explorer Microsoft Windows XP Service Pack 2 10 3 (i586) openSUSE 2 0 0.6 Mozilla Firefox © Copyright International Business Machines Corporation 2009. 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 Figures . xiii Tables . xvii Examples. xix Notices . xxi Trademarks . xxii Preface . xxiii The team that wrote this book . xxiv Become a published author . xxix Comments welcome. xxx Part 1. Introduction . 1 Chapter 1. Overview . 3 1.1 Executive summary . 4 1.2 The scope of this book . 4 1.3 Intended audience. 4 1.4 What is covered in this book . 5 1.5 What is not covered in this book . 6 1.6 Assumptions . 6 Chapter 2. Concepts of messaging . 7 2.1 Enterprise messaging . 8 2.2 Introducing Publish/Subscribe. 8 2.2.1 Publish/Subscribe . 9 2.2.2 Message selection . 10 2.2.3 Advantages . 13 2.3 Java Message Service . 13 2.3.1 Java Messaging . 13 2.3.2 Point-To-Point model . 15 2.3.3 Publish/Subscribe model. 15 2.3.4 Advantages of JMS . 16 © Copyright IBM Corp. 2009. All rights reserved. iii 2.4 Position messaging in service-oriented architecture . 16 Chapter 3. Introduction to WebSphere MQ . 19 3.1 Messaging with WebSphere MQ. 20 3.1.1 Core concept of WebSphere MQ . 21 3.1.2 WebSphere MQ messaging styles . 25 3.1.3 WebSphere MQ distributed messaging . 25 3.1.4 SSL support . 27 3.1.5 Diverse platforms . 27 3.2 What is new in WebSphere MQ V7.0 . 28 3.2.1 Publish/Subscribe integration . 28 3.2.2 WebSphere MQ Client enhancements . 30 3.2.3 MQI extensions . 31 3.2.4 WebSphere MQ JMS provider implementation. 33 3.2.5 Administration enhancements. 34 3.2.6 Managing Publish/Subscribe. 36 3.2.7 WebSphere MQ Bridge for HTTP . 36 3.2.8 z/OS enhancements . 37 3.3 Positioning in WebSphere product family . 38 3.3.1 Foundation for SOA . 38 3.3.2 Enhanced Enterprise Service Bus . 39 Part 2. WebSphere MQ V7.0 enhancements and changes . 41 Chapter 4. Publish/Subscribe integration. 43 4.1 Publishing and subscribing in WebSphere MQ . 44 4.2 WebSphere MQ Publish Subscribe in V7.0. 44 4.2.1 Topics in WebSphere MQ V7.0. 45 4.2.2 Topic strings and topic objects . 45 4.2.3 Topic alias . 47 4.2.4 Topic security . 49 4.3 Selectors . 49 4.4 Distributed Publish/Subscribe . 55 4.4.1 Pub/Sub Cluster topology . 56 4.4.2 Pub/Sub hierarchical topology . 57 4.4.3 Loop detection. 58 4.4.4 Scope of publications and subscriptions in Distributed Pub/Sub . 58 Chapter 5. WebSphere MQ Client enhancements . 59 5.1 Overview of enhancements. 61 5.2 Full duplex channels, heartbeat, and quiesce . 62 5.3 Conversation sharing . 64 5.3.1 SHARECNV parameter and management of channel definitions . 65 iv WebSphere MQ V7.0 Features and Enhancements 5.3.2 MQCONNX options for conversation sharing . 66 5.3.3 Displaying channel status . 67 5.3.4 Channel exits . 68 5.4 Read ahead. 68 5.4.1 MQOPEN options to specify read ahead . 69 5.4.2 MQGET considerations. 70 5.4.3 MQCLOSE options to process unread messages . 70 5.4.4 Displaying connection status of read ahead . 71 5.5 Asynchronous put . 71 5.5.1 MQPUT and MQPUT1 options for asynchronous put . 73 5.5.2 MQSTAT to obtain status of asynchronous puts. 74 5.6 Instance limits on SVRCONN channels . 76 5.6.1 MAXINST . 77 5.6.2 MAXINSTC . 77 5.6.3 Dynamic changes . 78 5.6.4 Examples of setting the new parameters . 78 5.7 Weighted selection on CLNTCONN channels. 78 5.7.1 CLNTWGHT parameter . 79 5.7.2 AFFINITY . 80 5.8 Reconnecting via a previously used channel . 80 5.9 Max message length increased on MQSERVER environment variable . 82 5.10 Security exit details in WebSphere MQ.