Messaging Solutions in a Linux Environment
Total Page:16
File Type:pdf, Size:1020Kb
Front cover Messaging Solutions in a Linux Environment Implement WebSphere MQ on Linux for Intel Implement WebSphere BI Message Broker on Linux Learn HA for WebSphere MQ on Linux Geert Van de Putte Geetha Adinarayan Robert Haddon Brian McCarty Mira Peltomaki Oliver Quixchan ibm.com/redbooks International Technical Support Organization Messaging Solutions in a Linux Environment July 2005 SG24-6336-00 Note: Before using this information and the product it supports, read the information in “Notices” on page ix. First Edition (July 2005) This edition applies to IBM WebSphere MQ for Linux for Intel, Version 5.3 and to IBM WebSphere Business Integration Message Broker Version 5.0 (product number 5724-E26). © 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 . ix Trademarks . x Preface . xi The team that wrote this redbook. xi Become a published author . xiv Comments welcome. xiv Chapter 1. Introduction to Linux and messaging. 1 1.1 Introduction to the world of Linux . 2 1.1.1 Linux . 2 1.1.2 Linux kernel. 3 1.1.3 Linux operating system . 7 1.1.4 Linux distributions . 9 1.2 Concepts of Message Oriented Middleware . 12 1.2.1 Point-to-point messaging . 13 1.2.2 Publish/subscribe . 13 1.2.3 A conceptual paradigm view . 14 1.3 Introducing WebSphere MQ . 14 1.3.1 WebSphere MQ support for Linux. 15 1.3.2 WebSphere MQ objects and security . 15 1.3.3 WebSphere MQ administration and management . 16 1.3.4 WebSphere MQ intercommunication and remote queuing . 17 1.3.5 WebSphere MQ transport types . 17 1.3.6 WebSphere MQ application programming interfaces . 18 1.4 Message broker concepts . 21 1.5 Introducing WebSphere BI Message Broker family. 22 1.5.1 Architecture overview . 23 1.5.2 Runtime environment . 25 1.6 Introducing WebSphere Application Server . 29 Chapter 2. Linux systems and advanced technologies. 33 2.1 Scalability versus high availability . 34 2.1.1 Scalability . 34 2.1.2 High availability . 35 2.2 Linux technologies for scalability. 37 2.2.1 Storage area network . 37 2.2.2 IBM hardware offerings for Linux scalability . 38 2.2.3 IBM software offerings for Linux scalability . 39 © Copyright IBM Corp. 2005. All rights reserved. iii 2.2.4 Open source offerings for Linux scalability . 41 2.3 Linux technologies for high availability . 42 2.3.1 Journaled file systems. 42 2.3.2 IBM software offerings for Linux high availability . 47 2.3.3 Open source offerings for Linux high availability. 47 2.4 Creating a highly available and scalable solution . 48 Chapter 3. Implementing HA queue managers: Part 1. 51 3.1 Scenario one overview . 52 3.1.1 Using WebSphere MQ in bindings mode . 52 3.1.2 Using WebSphere MQ in client mode . 52 3.2 Using Linux-HA . 53 3.2.1 Features of Linux-HA . 53 3.2.2 Planning an implementation . 54 3.2.3 Perform an implementation . 55 3.2.4 Heartbeat configuration. 56 3.2.5 Heartbeat authentication . 56 3.2.6 High availability resource configuration. 57 3.2.7 Network mirror configuration . 58 3.2.8 Validating heartbeat failover and failback . 64 3.2.9 HA configuration summary . 68 3.3 Installing and configuring WebSphere MQ . 68 3.3.1 Preinstallation steps . 69 3.3.2 Installation steps . 70 3.3.3 Postinstallation steps and install verification . 70 3.4 Message generation application . 71 3.4.1 Design of the message generation application . 71 3.4.2 Developing the message generation application . 71 3.4.3 Compiling and running the message generation application . 72 3.5 Message retrieval application . 73 3.5.1 Design of the message retrieval application . 74 3.5.2 Developing the message retrieval application. 74 3.6 WebSphere MQ HA configuration and scripts. 79 3.6.1 Normal scenario . 79 3.6.2 Configuring wmq1 and wmq2 for WebSphere MQ HA . 80 3.6.3 Failover . 82 3.6.4 Failback. 84 3.7 Persistent messages on WebSphere MQ queues . 85 3.8 Bindings versus client tests . 86 3.9 Running the Bindings mode test . 86 3.9.1 Queue Manager configuration. 86 3.9.2 Configuration verification. 91 3.9.3 WebSphere Application Server configuration . 93 iv Messaging Solutions in a Linux Environment 3.9.4 Queue Manager in action . 99 3.9.5 Summary of results . 111 3.10 Running the Client mode test . 112 3.10.1 Queue manager configuration. 112 3.10.2 Configuration of WebSphere Application Server. 114 3.10.3 WebSphere Application Server in action. 115 3.10.4 Summary of results . 118 3.11 Summary . 118 Chapter 4. Implementing HA queue managers: Part 2. 121 4.1 Scenario two overview . 122 4.2 Implementing Linux-HA on SUSE . 122 4.2.1 Planning an implementation . 122 4.2.2 Installing Linux High-Availability . 124 4.2.3 Configuring Linux-HA . 125 4.2.4 Configuring and testing the shared SCSI drives . 128 4.2.5 Validating heartbeat failover and failback . 131 4.2.6 HA configuration summary . 134 4.3 Installing and configuring WebSphere MQ . 134 4.4 Message generation application . 134 4.4.1 Compiling and running the message generation application . 134 4.5 Messaging retrieval application . ..