Can we connect to an ActiveMQ broker without providing user/password ?

Solution Verified - Updated -

Environment

  • Red Hat JBoss A-MQ
    • 6.x
  • Red Hat JBoss Fuse
    • 6.x

Issue

  • We have a camel route which puts messages onto an activemq queue. In order to connect to the broker within the same fabric it is necessary to use username and password.
    Is it possible to have some kind of trusted bundle and not to use user/password or at least to use an non admin user ?

Resolution

  • Unfortunately there are probably not more ways except using the vm: transport inside the route. For this, you just have to make sure that your bundle and the broker are within the same Fuse Container.

  • You will just need to get the connection to the broker from a route with vm on the jms component. Given from here that it does not list a username, password it may actually bypass the authentication.

  • This means you can simply use this url to connect to the broker, vm://localhost?broker.persistent=false.

This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.

Comments