Book Image

HornetQ Messaging Developer's Guide

By : Piero Giacomelli
Book Image

HornetQ Messaging Developer's Guide

By: Piero Giacomelli

Overview of this book

<p>Messages and information can be exchanged at exponential speed with JBoss HornetQ asynchronous messaging middleware. Learn how to use the JAVA open source Message Oriented Framework, to build a high-performance, multi-protocol, embeddable, clustered system and manage millions of messages per second.<br /><br />In the HornetQ Messaging Developer’s Guide you will find the most common applications of a message exchanger with example code, as part of real-world scenarios. This practical and applicable guide increases reader knowledge chapter by chapter, covering basics to the most advanced features.<br /><br />You will start from a clean installation of a HornetQ sever and, having progressively become a HornetQ master, will finish by being able to use the framework embedded in your software and sharing information in a cluster environment.<br /><br />Starting from writing and reading a single message, we will discover more advanced features like managing queues, clustering the server, and controlling the undelivered messages. The book deals with a real-world advanced medical scenario as the main example that will lead you from learning the basics to the advanced features of HornetQ.</p>
Table of Contents (18 chapters)
HornetQ Messaging Developer's Guide
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

A more detailed description


Diverts are server-side configurations that allow to transparently route messages from one queue to another.

Diverts can be of the following two types:

  • Exclusive: This means that the message is diverted from one address to another without being visible to the consumer of the first address

  • Non-exclusive: In this, a copy is routed from the source address to the target address

In our example we will do something more; we will route messages from a queue on a HornetQ node to another queue on another target node. To divert our messages from one instance to another, we will create a JMS bridge between the two instances.

Bridges are logical software applications that allow us to connect to HornetQ instances so that it is possible to consume a message from a source queue or topic and then send them to a target queue or topic on another server.

Bridges are resilient to source or destination unavailability so they can be used specifically on a World Area Network (WAN).

The...