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

HornetQ and JBoss AS 7


Starting from JBoss Application Server 7, HornetQ has been integrated into the distribution as the JBoss default messaging provider. Armed with the HornetQ standalone application server concepts, we can move on to see how to configure HornetQ in JBoss AS 7. First you need to download the application server from http://www.jboss.org/jbossas/downloads/, and then you need to download the file release for 7.0.1 Thunder. If you downloaded a previous version, do not forget to download the full version, because the web version does not contain HornetQ as a module.

Once you download the ZIP file on Windows or Linux, you need to unzip it to have a JBOSS_ROOT folder. In our Linux environment, we have our JBOSS_ROOT folder under /jboss-as-7.1.0.Final.

JBoss uses XML files for configuring the optional module that should be launched with the application server when it is started. They are placed in the JBOSS_ROOT\standalone\configuration\ folder. Unfortunately, running JBoss without...