MRG Messaging

MRG Messaging

Tutorial

Jonathan Robie

Edited by

Lana Brindley

Content Author
Red Hat
Legal Notice
Abstract

This book shows you how to write programs for the MRG Messaging component of the Red Hat Enterprise MRG distributed computing platform. To learn how to download and install MRG Messaging see the MRG Messaging Installation Guide


Preface
1. Document Conventions
2. We Need Feedback!
1. Basic Concepts
1.1. Fanout Exchange
1.2. Direct Exchange
1.3. Topic Exchange
2. Examples Overview
3. Getting MRG Messaging Software
4. Using MRG Messaging with Python
4.1. Creating and Closing Clients and Sessions
4.2. Writing Point-to-Point Applications in Python.
4.2.1. Declaring and Binding a Queue
4.2.2. Publishing Messages to a Direct Exchange
4.2.3. Reading Messages from the Queue
4.3. Writing Fanout Applications in Python
4.3.1. Declaring and Binding a Queue
4.3.2. Publishing Messages to the Fanout Exchange
4.3.3. Reading Messages from the Queue
4.4. Writing Publish/Subscribe Applications in Python
4.4.1. Subscribing: Declaring Private Queues
4.4.2. Publishing Messages to a Topic Exchange
4.4.3. Reading Messages from the Queue
4.5. Writing Request/Response Applications in Python
4.5.1. The Server Application
4.5.2. The Client Application
4.6. Durable Queues and Durable Messages in Python
4.7. Using Transactions in Python
5. Using MRG Messaging with C++
5.1. Creating and Closing Clients and Sessions
5.2. Writing Point-to-Point Applications in C++
5.2.1. Declaring and Binding a Queue
5.2.2. Publishing Messages to a Direct Exchange
5.2.3. Reading Messages from the Queue
5.3. Writing Fanout Applications in C++
5.3.1. Declaring and Binding a Queue
5.3.2. Publishing Messages to the Fanout Exchange
5.4. Writing Publish/Subscribe Applications in C++
5.4.1. Publishing Messages to a Topic Exchange
5.4.2. Reading Messages from the Queue
5.5. Writing Request/Response Applications in C++
5.5.1. The Client Application
5.5.2. The Server Application
5.6. Durable Queues and Durable Messages in C++
5.7. Using Transactions in C++
6. Using MRG Messaging with Java JMS
6.1. Java JMS Client Compatibility and Interoperability
6.2. Creating and Closing Connections and Sessions with JNDI
6.3. Creating and Closing Connections and Sessions with AMQP
6.4. Writing Point-to-Point Applications in Java JMS
6.4.1. JNDI Properties
6.4.2. Publishing Messages to a Queue
6.4.3. Reading Messages from the Queue with a Message Consumer
6.4.4. Reading Messages from the Queue using a Message Listener
6.5. Writing Publish/Subscribe Applications in Java JMS
6.5.1. JNDI Properties
6.5.2. Publishing Messages to a Topic
6.5.3. Reading Messages from the Queue
6.6. Writing Request/Response Applications in Java JMS
6.6.1. JNDI Properties
6.6.2. Client
6.6.3. The Server
6.7. Durability and Persistence in Java JMS
6.8. Using Transactions in Java JMS
A. Revision History