Initial Configuration

Document Organization

Firstly you need to add the jars to your classpath.

Required JARs

To make ActiveMQ easy to use, the default activemq.jar comes complete with all the libraries required. If you prefer to have explicit control over all the jars used by ActiveMQ here is the full list of individual jars required

If you want to grab a J2EE specification jar we recommend the Apache repository

Optional JARS

Persistence Support

The default persistence is the AMQ Message Store. We do still support persistence via JDBC and a high performance journal. For full explict control over configuration check out the Xml Configuration.

If you're just doing some testing or in-VM SEDA based messaging you may wish to disable persistence. You can use the Xml Configuration for this.

You can do this by setting the usePersistence property to false either in the Xml Configuration or on the broker URL.

Next steps

One of the first things you might want to do is start a broker. Once you have a broker running you could try using the JNDI Support which shows how to run an example JMS program. Or there are some other example programs

If you don't want to use JNDI you can just instantiate an ActiveMQConnectionFactory, configure its properties directly and then you're ready to use the standard JMS API to create Connections, Sessions, MessageProducer and MessageConsumer instances.

Additional Resources

Related Reading

Specifications

Related open source projects