Free Sample
+ Collection

HornetQ Messaging Developer’s Guide

Piero Giacomelli

Avoid being stung by JBoss HornetQ messaging service whether you're an existing user or a newcomer with this agile, fast-paced, example-rich guide with this book and ebook
RRP $26.99
RRP $44.99
Print + eBook

Want this title & more?

$12.99 p/month

Subscribe to PacktLib

Enjoy full and instant access to over 2000 books and videos – you’ll find everything you need to stay ahead of the curve and make sure you can always get the job done.

Book Details

ISBN 139781849518406
Paperback250 pages

About This Book

  • Rethink the way you process messages in a stable, powerful and adaptive way, using the JBoss HornetQ messaging system.
  • Learn how to set up and code real-world, high performance message applications.
  • Real-world advanced medical scenario features as the main example that will lead you from the basics of enterprise messaging to the advanced features

Who This Book Is For

This book is intended both for first time users and readers who are already using the JBoss messaging system. Advanced features are explained and every chapter suggests further improvement, so the willing reader is challenged by increasing their knowledge in a practical and productive way.

Table of Contents

Chapter 1: Getting Started with HornetQ
A quick introduction to HornetQ
Introduction to our fictional example
Installation and configuration of the environment
Downloading the software
Installing HornetQ
Installing HornetQ on Linux/Unix/Mac the easy way
Configuring the Eclipse IDE for HornetQ
Coding our first example
Chapter 2: Setting Up HornetQ
Which HornetQ version do I need?
What about the cloud?
A word on the operating system
System requirements
Installing the Java Virtual Machine
Installing the HornetQ standalone server
Starting/stopping HornetQ
Compiling from sources
Basic HornetQ configuration
Starting HornetQ as a service in Windows/Linux
HornetQ and JBoss AS 7
Checking your setup/installation
Chapter 3: Basic Coding with HornetQ: Creating and Consuming Messages
Installing Eclipse on Windows
Installing NetBeans on Windows
Installing NetBeans on Linux
Post installation
A 10,000 foot view of HornetQ
The HornetQ core API example
Putting everything together
Final considerations
Have you done your math?
Chapter 4: Monitoring HornetQ
Managing HornetQ using the core API
JMS management API
Managing clients using JMX
Chapter 5: Some More Advanced Features of HornetQ
Managing large messages with HornetQ
Managing undelivered messages
Message priority
Chapter 6: Clustering with HornetQ
First cluster with two different nodes
Creating a sharing queue on a HornetQ cluster
Configuring the environment
Coding the clustered queue example
Chapter 7: Divert and Filter Messages
A more detailed description
Configuring the servers
Configuring the XML
Chapter 8: Controlling Message Flow
What happens when you send or receive a message (for real)
Controlling the producer side
Chapter 9: Ensuring Your HornetQ Security
Configuring the HornetQ security
Resuming the example on security and permissions
Chapter 10: HornetQ in JBoss Environment
Configuring and installing JBoss
Configuring HornetQ within JBoss
HornetQ and J2EE environment
Chapter 11: More on HornetQ Embedding
Embedding the HornetQ server in your application
Using STOMP with HornetQ
Using HornetQ with Spring
Coding our example

What You Will Learn

  • Install and configure a HornetQ server on Windows or Linux
  • Control the whole process of reading, writing and queuing messages
  • Check the exact status of every single message in the system
  • Group different servers to form a High Performance Message Cluster
  • Deliver messages over a WAN to configure backup servers anywhere
  • Secure your server to avoid any intrusion even by the internal coder who manages queues
  • Manage your client to control task assignment
  • Use HornetQ inside JBOSS, Spring or elsewhere, embedded in your Java application or as a standalone server

In Detail

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.

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.

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.

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.


Read More