Child pages
  • Examples
Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 11 Next »

Before running the examples you should try running a JMS broker on your machine. Follow the Installation instructions to use a binary distribution of ActiveMQ. To run the broker in a command shell, type:

bin/activemq

This starts up ActiveMQ.

Running the examples from a binary distro

You can use Ant to compile and run the examples. In another shell, run the examples:

cd example
ant producer

In another shell type:

cd example
ant consumer

You should then see messages being produced and consumed. You can also pass additional commands into these goals using variables that are availabe in the build.xml. Below is an example:

ant consumer -Durl=tcp://localhost:61616 -Dtopic=true -Ddurable=true -Dmax=5000
ant producer -Durl=tcp://localhost:61616 -Dtopic=true -DtimeToLive=30000 -Dmax=5000

For a summary of all the available goals and options try:

ant help

See Also

  • No labels