0% found this document useful (0 votes)
303 views1 page

Apache Activemq 5.3.0 User Guide

The document provides instructions for getting started with Apache ActiveMQ, including running the broker with the "activemq" command, installing Java and Ant which the example programs require, and then running the example producer and consumer programs using the "ant" command from within the example directory.

Uploaded by

aawaak
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
303 views1 page

Apache Activemq 5.3.0 User Guide

The document provides instructions for getting started with Apache ActiveMQ, including running the broker with the "activemq" command, installing Java and Ant which the example programs require, and then running the example producer and consumer programs using the "ant" command from within the example directory.

Uploaded by

aawaak
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1

Getting Started file:///C:/Automation/apache-activemq-5.3.0/user-guide.

html

Getting Started
Welcome to Apache ActiveMQ. This document gives you a quick overview of how to get started trying out
Apache ActiveMQ.

Running the broker


From the binary distribution you can run the Apache ActiveMQ server pretty easily via the bin/activemq
command. e.g. from a shell type

cd bin
activemq

The Apache ActiveMQ broker should now have started

Running the example programs


To run the demo producer/consumer tools, you need Java and Ant installed.

Installing Ant

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.

JAVA_HOME must point to your JDK installation, such that $JAVA_HOME/bin contains the java
executable and $JAVA_HOME/lib contains some jar files.
ANT_HOME must point to where you installed Apache Ant (http://ant.apache.org)
then you need to add $JAVA_HOME/bin and $ANT_HOME/bin to your PATH variable.

To test this is all working, try typing

java -version
cd example
ant -version

Running the example producer and consumer

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

1 of 1 8/2/17, 6:42 PM

You might also like