|
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 distroYou 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| |