Welcome to Apache ActiveMQ. This document gives you a quick overview of how to get started trying out Apache ActiveMQ.
From the binary distribution you can run the Apache ActiveMQ server via the bin/activemq command. If you're using Windows, just type
cd bin activemq.bat
On Unix-like systems, type
./bin/activemq console
to start the broker in foreground.
The Apache ActiveMQ broker should now have started
Tip: If you run the bin/activemq command without any arguments it will output usage.
To stop the broker you can press ctrl + c to stop the process.The broker can be started as a background process via the bin/activemq command on Unix-like systems, type
./bin/activemq start
to start the broker in background. The broker will write to its log in the data/activemq.log file.
The broker can be stopped via the bin/activemq command If you're using Windows, just type
cd bin activemq.bat stop
On Unix-like systems, type
./bin/activemq stop
to stop the broker.
To run the demo producer/consumer tools, you need Java and Ant installed.
The example programs depend on Ant being installed. There are more detailed instructions on the Ant website - but essentially you need to follow these steps.
To test this is all working, try typing
java -version cd example ant -version
Once you've got Java and Ant installed correctly you should be able to run
cd example ant consumer
and in another shell
cd example ant producer
you can specify exact URLs to connect to via command like arguments. e.g.
ant producer -Durl=tcp://somehost:port