You are previewing Instant Apache ActiveMQ Messaging Application Development How-to.
O'Reilly logo
Instant Apache ActiveMQ Messaging Application Development How-to

Book Description

Develop message-based applications using ActiveMQ and the JMS

  • Learn something new in an Instant! A short, fast, focused guide delivering immediate results.

  • Learn how to use the JMS API

  • Explore advanced messaging features in ActiveMQ

  • Useful information on common pitfalls new developers often encounter

In Detail

Apache ActiveMQ is a powerful and popular open source messaging and Integration Patterns server. ActiveMQ is a fully JMS 1.1 compliant Message Broker and supports many advanced features beyond the JMS specification.

Instant ActiveMQ Application Development How-to shows you how to get started with the ActiveMQ Message Broker. You will learn how to develop message-based applications using ActiveMQ and the JMS specification.

In this book you will learn all the basic skills you need to start writing Java Messaging applications with a firm grounding in the more advanced features of ActiveMQ, giving you the tools to continue to master application development using ActiveMQ.

Starting by applying the messaging features of the JMS specification to write basic messaging applications, you will develop a basic JMS application using topics and queues to broadcast events as well as perform Request and Response operations over the JMS.

Once you have mastered the simple tasks you will move onto using the advanced features in ActiveMQ to supercharge your messaging applications. You will get to grips with ActiveMQ’s scheduler to delay messages. You will also learn how to leverage ActiveMQ’s fault-tolerant capabilities to create robust client applications.

Table of Contents

  1. Instant Apache ActiveMQ Messaging Application Development How-to
    1. Instant Apache ActiveMQ Messaging Application Development How-to
    2. Credits
    3. About the Author
    4. About the Reviewer
    5. www.PacktPub.com
      1. Support files, eBooks, discount offers and more
        1. Why Subscribe?
        2. Free Access for Packt account holders
    6. Preface
      1. What this book covers
      2. What you need for this book
      3. Who this book is for
      4. Conventions
      5. Reader feedback
      6. Customer support
        1. Downloading the example code
        2. Errata
        3. Piracy
        4. Questions
    7. 1. Instant Apache ActiveMQ Messaging Application Development How-to
      1. Installing ActiveMQ (Simple)
        1. Getting ready
        2. How to do it...
        3. There's more...
      2. Setting up our development environment (Simple)
        1. Getting ready
        2. How to do it...
        3. How it works...
        4. There's more...
      3. Creating ActiveMQ applications (Simple)
        1. Getting ready
        2. How to do it...
        3. How it works...
        4. There's more...
          1. A brief aside on Connection URIs
      4. Dividing up work with queues (Simple)
        1. Getting ready
        2. How to do it...
        3. How it works...
          1. The job producer
          2. The job consumer
        4. There's more...
          1. Where to learn more about Message Acknowledgement
      5. Event processing with topics (Simple)
        1. Getting ready
        2. How to do it...
        3. How it works...
          1. The stock price producer
          2. The stock price consumer
        4. There's more...
          1. Things to keep in mind when using durable subscriptions
      6. Selecting messages (Simple)
        1. Getting ready
        2. How to do it...
        3. How it works...
          1. What is a JMS selector?
          2. Adding selectors to subscriptions
        4. There's more...
          1. Sparse matching selectors
      7. Using the JMS request/response pattern (Intermediate)
        1. Getting ready
        2. How to do it...
        3. How it works...
          1. The JMS request application
          2. The JMS response application
        4. There's more...
          1. Some things to remember about temporary destinations
      8. Scheduling message delivery (Advanced)
        1. Getting ready
        2. How to do it...
        3. How it works...
        4. There's more...
      9. Activity monitoring in ActiveMQ (Advanced)
        1. Getting ready
        2. How to do it...
        3. How it works...
        4. There's more...
      10. Application testing using embedded brokers (Advanced)
        1. Getting ready
        2. How to do it...
        3. How it works...
        4. There's more...
          1. Where to find more about configuring embedded brokers
      11. Using ActiveMQ connection pools (Advanced)
        1. Getting ready
        2. How to do it...
        3. How it works...
          1. The PooledConnectionFactory class
          2. The PooledConnection class
          3. The PooledSession class
          4. Our connection pooling example
        4. There's more...
          1. More information on configuring the pooling library
      12. Using Virtual Destinations (Advanced)
        1. Getting ready
        2. How to do it...
        3. How it works...
        4. There's more...
      13. Using Failover transport (Advanced)
        1. Getting ready
        2. How to do it...
        3. How it works...
        4. There's more...
          1. Using Failover transport in a broker cluster
          2. Complete Failover transport configuration reference