activemq-artemis/examples
Ville Skyttä 16ee65309c Add missing @Override annotations 2016-04-04 11:03:48 -05:00
..
common This commit has improvements on the examples including: 2015-08-11 23:44:43 -04:00
features Add missing @Override annotations 2016-04-04 11:03:48 -05:00
perf/jmeter adding JMeter examples 2015-10-06 22:20:38 -04:00
protocols Use try-with-resources more 2016-02-21 12:09:43 +02:00
README.md Fixing clustered examples on MacOS (and possibly other envs) 2015-09-02 09:32:13 -04:00
pom.xml Bump to next version to 1.3.0-SNAPSHOT 2016-01-20 17:25:07 +00:00

README.md

Running the ActiveMQ Artemis Examples

To run an individual example firstly cd into the example directory and run

mvn verify

Most examples offer a way to start them without creating and starting the server (say if you want to do it manually)

mvn verify -PnoServer

If you are running against an un released version, i.e. from master branch, you will have to run mvn install on the root pom.xml and the example/activemq-jms-examples-common/pom.xml first.

If you want to run all the examples (except those that need to be run standalone) you can run mvn verify -Pexamples in the examples directory but before you do you will need to up the memory used by running:

export MAVEN_OPTS="-Xmx1024m -XX:MaxPermSize=256m"

if you are running a Mac OS, you may want to add this to run the clustered examples:

export MAVEN_OPTS="-Xmx1024m -XX:MaxPermSize=256m -Djava.net.preferIPv4Stack=true"

Recreating the examples

If you are trying to copy the examples somewhere else and modifying them. Consider asking Maven to explicitly list all the dependencies:

# if trying to modify the 'topic' example:
cd examples/jms/topic && mvn dependency:list