tree: 2b6a93c441cd3ced09e5ab9b56d9a116e2d2ef6f [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. interceptor-client/
  16. jms-auto-closeable/
  17. jms-bridge/
  18. jms-completion-listener/
  19. jms-context/
  20. jms-shared-consumer/
  21. jmx/
  22. large-message/
  23. last-value-queue/
  24. management/
  25. management-notifications/
  26. message-counters/
  27. message-group/
  28. message-group2/
  29. message-priority/
  30. no-consumer-buffering/
  31. paging/
  32. pre-acknowledge/
  33. producer-rate-limit/
  34. queue/
  35. queue-requestor/
  36. queue-selector/
  37. reattach-node/
  38. request-reply/
  39. rest/
  40. scheduled-message/
  41. security/
  42. security-ldap/
  43. send-acknowledgements/
  44. spring-integration/
  45. ssl-enabled/
  46. ssl-enabled-dual-authentication/
  47. static-selector/
  48. temp-queue/
  49. topic/
  50. topic-hierarchies/
  51. topic-selector-example1/
  52. topic-selector-example2/
  53. transactional/
  54. xa-heuristic/
  55. xa-receive/
  56. xa-send/
  57. pom.xml
  58. 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