O'Reilly logo

Java Message Service, 2nd Edition by Richard Monson-Haefel, Mark Richards, David A Chappell

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Appendix D. Installing and Configuring ActiveMQ

ActiveMQ is an enterprise-level open source messaging provider that supports JMS (as well as numerous native API’s), making it a popular choice among messaging providers. It provides JMS clients with heterogeneous integration to a number of other platforms, including C++, C, C#, and Ruby (to name a few).

Although you can use any JMS provider that supports JNDI and JMS 1.1 to run the examples in this book, in this appendix we have provided the setup and configuration for using ActiveMQ. All of the code examples in the book can be run by using ActiveMQ “straight out of the box,” with some minimal configuration changes. The following sections detail the configuration needed to run the examples using ActiveMQ version 5.2.0.

Installing ActiveMQ

The examples in this book use the basic out-of-the-box installation of ActiveMQ version 5.2.0. You can download ActiveMQ from the website at http://activemq.apache.org. Once downloaded, simply unzip or untar the compressed file.

Configuring ActiveMQ for JNDI

The examples in this book all use JNDI to connect to the JMS provider and obtain the JMS destinations (queues and topics). Therefore, you will need to create a jndi.properties file for each example. This property file contains the connection information, connection factory names, and destination names used by the sample code in each chapter. The code in this book is designed to be run with a centralized broker model, meaning that there is a separate ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required