HornetQ Messaging Developer’s Guide


HornetQ Messaging Developer’s Guide
eBook: $26.99
Formats: PDF, PacktLib, ePub and Mobi formats
$22.94
save 15%!
Print + free eBook + free PacktLib access to the book: $71.98    Print cover: $44.99
$44.99
save 37%!
Free Shipping!
UK, US, Europe and selected countries in Asia.
Also available on:
Overview
Table of Contents
Author
Support
Sample Chapters
  • 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

Book Details

Language : English
Paperback : 250 pages [ 235mm x 191mm ]
Release Date : October 2012
ISBN : 1849518408
ISBN 13 : 9781849518406
Author(s) : Piero Giacomelli
Topics and Technologies : All Books, Application Development, Java, JBoss, Open Source

Table of Contents

Preface
Chapter 1: Getting Started with HornetQ
Chapter 2: Setting Up HornetQ
Chapter 3: Basic Coding with HornetQ: Creating and Consuming Messages
Chapter 4: Monitoring HornetQ
Chapter 5: Some More Advanced Features of HornetQ
Chapter 6: Clustering with HornetQ
Chapter 7: Divert and Filter Messages
Chapter 8: Controlling Message Flow
Chapter 9: Ensuring Your HornetQ Security
Chapter 10: HornetQ in JBoss Environment
Chapter 11: More on HornetQ Embedding
Index
  • Chapter 1: Getting Started with HornetQ
    • A quick introduction to HornetQ
    • Introduction to our fictional example
    • Installation and configuration of the environment
      • A word on the OS
    • Downloading the software
    • Installing HornetQ
    • Installing HornetQ on Linux/Unix/Mac the easy way
      • Installing Eclipse
      • Installing and configuring MongoDB
    • Configuring the Eclipse IDE for HornetQ
    • Coding our first example
      • Class fields
      • Initializing the context
      • Creating and opening the connection
      • Producing the message
      • Consuming the message
      • Connecting to MongoDB
        • Storing to MongoDB
      • Closing everything
    • Summary
    • 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 as a service in Linux
        • Automating the HornetQ startup in Windows
      • HornetQ and JBoss AS 7
      • Checking your setup/installation
      • Summary
      • 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
          • Thinking, then coding
        • The HornetQ core API example
          • Preparing your development environment
          • Creating a shared core API connection
          • Creating and sharing a HornetQ session
          • Coding a client consumer
          • Testing the first message sent
          • Coding the HornetQ core API consumer
        • Putting everything together
        • Final considerations
        • Have you done your math?
        • Summary
        • Chapter 4: Monitoring HornetQ
          • Managing HornetQ using the core API
            • Configuring the environment
            • Before using the management core API classes
            • First example using the core
          • JMS management API
            • Calling the JMS management API
          • Managing clients using JMX
            • Setting up the server
            • Listing all the clients connected to a queue using JMX
          • Summary
          • Chapter 5: Some More Advanced Features of HornetQ
            • Managing large messages with HornetQ
              • Managing large messages using JMS
              • Managing large messages using the core API
            • Managing undelivered messages
              • Delay in redelivery
              • Dead letter address
            • Message priority
            • Summary
            • Chapter 6: Clustering with HornetQ
              • First cluster with two different nodes
                • Creating two nodes
                • Configuring the nodes
                • Running both the nodes
                • Coding a message producer and consumer on a cluster
              • Creating a sharing queue on a HornetQ cluster
              • Configuring the environment
              • Coding the clustered queue example
                • Creating the connections
                • Creating the producer and the consumers
                • Producing and consuming the messages on the clustered queue
                • Final considerations
              • Summary
              • Configuring the servers
              • Configuring the XML
                • Changing the script
                • Coding the example
                • Some more advanced filtering possibilities
              • Summary
                • Chapter 8: Controlling Message Flow
                  • What happens when you send or receive a message (for real)
                    • Changing the size of the buffer for JMS connections
                    • Buffer size using Core API
                    • Controlling the consuming rate
                  • Controlling the producer side
                  • Summary
                  • Chapter 9: Ensuring Your HornetQ Security
                    • Configuring the HornetQ security
                    • Resuming the example on security and permissions
                      • Testing our permissions
                        • Cluster security
                      • Configuring the SSL connection
                      • Setting up an SSL connection
                    • Summary
                      • Chapter 11: More on HornetQ Embedding
                        • Embedding the HornetQ server in your application
                          • Embedding HornetQ in a simple way
                          • Embedding JMS HornetQ server
                          • Embedding HornetQ to create a cluster
                        • Using STOMP with HornetQ
                          • Enabling STOMP in the standalone version
                          • Running an embedded STOMP server
                        • Using HornetQ with Spring
                        • Coding our example
                          • Adding the interface
                          • Creating the Bean
                          • Creating the configuration XML
                          • Creating the test class
                        • Summary

                        Piero Giacomelli

                        Piero Giacomelli started playing with computers back in 1986 when he received his first PC (a commodore 64). Despite his love for computers, he graduated in Mathematics, entered the professional software industry in 1997, and started using Java.

                        He has been involved in a lot of software projects using Java, .NET, and PHP. He is not only a great fan of JBoss and Apache technologies, but also uses Microsoft technologies without moral issues.

                        He has worked in many different industrial sectors, such as aerospace, ISP, textile and plastic manufacturing, and e-health association, both as a software developer and as an IT manager. He has also been involved in many EU research-funded projects in FP7 EU programs, such as CHRONIOUS, I-DONT-FALL, FEARLESS, and CHROMED.

                        In recent years, he has published some papers on scientific journals and has been awarded two best paper awards by the International Academy, Research and Industry Association (IARIA).

                        In 2012, he published HornetQ Messaging Developer's Guide, Packt Publishing, which is a standard reference book for the Apache HornetQ Framework.

                        He is married with two kids, and in his spare time, he regresses to his infancy ages to play with toys and his kids.

                        Sorry, we don't have any reviews for this title yet.

                        Code Downloads

                        Download the code and support files for this book.


                        Submit Errata

                        Please let us know if you have found any errors not listed on this list by completing our errata submission form. Our editors will check them and add them to this list. Thank you.

                        Sample chapters

                        You can view our sample chapters and prefaces of this title on PacktLib or download sample chapters in PDF format.

                        Frequently bought together

                        HornetQ Messaging Developer’s Guide +    OpenStack Cloud Computing Cookbook =
                        50% Off
                        the second eBook
                        Price for both: $39.00

                        Buy both these recommended eBooks together and get 50% off the cheapest eBook.

                        What you will learn from this book

                        • 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.

                        Approach

                        Written by an expert HornetQ developer this guide develops an applicable example to accompany practical tutorials and screenshots. Readers will have no trouble applying what they’ve learnt to their own messaging needs.

                        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.

                        Code Download and Errata
                        Packt Anytime, Anywhere
                        Register Books
                        Print Upgrades
                        eBook Downloads
                        Video Support
                        Contact Us
                        Awards Voting Nominations Previous Winners
                        Judges Open Source CMS Hall Of Fame CMS Most Promising Open Source Project Open Source E-Commerce Applications Open Source JavaScript Library Open Source Graphics Software
                        Resources
                        Open Source CMS Hall Of Fame CMS Most Promising Open Source Project Open Source E-Commerce Applications Open Source JavaScript Library Open Source Graphics Software