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