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 7 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. Then to run the broker in a command shell (from the bin directory) type

activemq

Running the examples from a binary distro

You can use Ant to compile and run the examples. To run the examples try

cd example
ant consumer

In another shell

cd example
ant producer

You should then see messages being produced and consumed. Pass additional commands into these goals using variables. (See the build.xml for more details). e.g.

ant producer -Durl=tcp://localhost:61616

For a summary of all the available goals try

ant help

See Also

  • No labels