1

I’m working on containerising a Java Spring Boot application that consumes from a JMS queue.

In order to run locally with Docker I’m trying to create a local instance of ActiveMQ from the Docker compose file.

I can start an instance, but I haven’t been unable to add a queue from the Docker compose environment variables or CLI. Trying to stay light on configuration here as is the Java app I’m trying to test. Idea is for the application to consume from the queue and push a payload to the queue from SOAP UI or postman.

Am I going about this all wrong? Is there a simpler way to hit the JmsListeners in the Java application?

2
  • 1
    What container image are you using? Can you share your current docker compose file? Commented Mar 4 at 7:50
  • What version of ActiveMQ are you using? Commented Mar 6 at 16:32

1 Answer 1

0

ActiveMQ supports automatic destination creation, and that usually yields the best balance of developer flexibility and light-weight management. Simply have your producer and consumer connect up, and messages will start moving.

This can be customized using Authorization entries:

ref: ActiveMQ Security

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.