How to configure a custom JAAS username/password for "amq" camel endpoint in fabric?

Solution In Progress - Updated -

Issue

We have some containers in fabric with default admin user configuration.
We changed the "admin" user password with a custom one via jaas console. Below are the sequence of commands:

JBossFuse:admin@root> jaas:realms
Index Realm                Module Class
    1 karaf                org.apache.karaf.jaas.modules.properties.PropertiesLoginModule
    2 karaf                org.apache.karaf.jaas.modules.publickey.PublickeyLoginModule
    3 karaf                io.fabric8.jaas.ZookeeperLoginModule

JBossFuse:admin@root> jaas:manage --index 3
JBossFuse:admin@root> jaas:users
User Name            Role
admin                admin

JBossFuse:admin@root> jaas:userdel admin
JBossFuse:admin@root> jaas:update
JBossFuse:admin@root> jaas:manage --index 3
JBossFuse:admin@root> jaas:useradd admin mycustompassword
JBossFuse:admin@root> jaas:roleadd admin admin
JBossFuse:admin@root> jaas:update

We restarted the root container. After the restart all the clients using "amq" Camel endpoint in fabric containers are unable to connect to the activemq broker (we have one default standalone broker defined for the fabric).
We see these exceptions:

2015-06-12 05:12:42,414 | WARN  | .221:33899@61616 | TransportConnection              | ivemq.broker.TransportConnection  815 | 265 - org.apache.activemq.activemq-osgi - 5.9.0.redhat-611412 | Failed to add Connection ID:id-10-0-0-221.elc.internal-60889-1434100351853-17:1
java.lang.SecurityException: User name [admin] or password is invalid.

How can configure the activemq security in order to define a custom username/password for "amq" Camel endpoint?

Environment

  • JBoss Fuse
    • 6.1
  • JBoss A-MQ
    • 6.1

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content