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