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

Version 1 Next »

There are a few example programs to test out ActiveMQ in the org.activemq.tool package in the unit test area.

You can run them from inside your IDE as they are stand alone Java applications. e.g. ConsumerTool consumes on a topic/queue and PublisherTool publishes on a topic/queue.

You can run them from inside Maven via

maven consumer -Durl=tcp://localhost:61616

for the producer

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

You can specify a subject to publish/consume on too

maven producer -Dsubject=COM.ACME.MYQUEUE

You can mix and match url and subject parameters. If neither are specified then defaults are used.

  • No labels