tree: 5d0b145edef3073c0edc10484ec4624cbfd8c1f2 [path history] [tgz]
  1. bridge/
  2. browser/
  3. client-kickoff/
  4. consumer-rate-limit/
  5. dead-letter/
  6. delayed-redelivery/
  7. divert/
  8. durable-subscription/
  9. embedded/
  10. embedded-simple/
  11. expiry/
  12. http-transport/
  13. instantiate-connection-factory/
  14. interceptor/
  15. jms-auto-closeable/
  16. jms-bridge/
  17. jms-completion-listener/
  18. jms-context/
  19. jms-shared-consumer/
  20. jmx/
  21. large-message/
  22. last-value-queue/
  23. management/
  24. management-notifications/
  25. message-counters/
  26. message-group/
  27. message-group2/
  28. message-priority/
  29. no-consumer-buffering/
  30. paging/
  31. pre-acknowledge/
  32. producer-rate-limit/
  33. queue/
  34. queue-requestor/
  35. queue-selector/
  36. reattach-node/
  37. request-reply/
  38. rest/
  39. scheduled-message/
  40. security/
  41. send-acknowledgements/
  42. spring-integration/
  43. ssl-enabled/
  44. static-selector/
  45. temp-queue/
  46. topic/
  47. topic-hierarchies/
  48. topic-selector-example1/
  49. topic-selector-example2/
  50. transactional/
  51. xa-heuristic/
  52. xa-receive/
  53. xa-send/
  54. pom.xml
  55. README.md
examples/features/standard/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"

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