I'm trying to change the default password for the admin user in a OpenMQ broker instance running as LOCAL in a Glassfish cluster. I tried logging in to the server locally and using the imqusermgr tool but that didn't work. I'm guessing I have to use some asadmin set command but I don't know which one.
How do I change the default password for an OpenMQ broker running as LOCAL in Glassfish 3.1.1?
1.5k Views Asked by Eduardo Linares At
2
There are 2 best solutions below
0

You can set your custom password for your broker.
- Go to MessageQueue5.0/etc/mq directory. Here you will find passfile.sample file.
- Read this file. There are a lot of administration properties you can set. Admin password in one of it(imq.imqcmd.password).
- After setting this you have to set following properties in brokers config.properties file (a.imq.passfile.enabled=true b.imq.passfile.dirpath= directory of the file and c. imq.passfile.name=name of the passfile)
- You will find this config.properties file in MessageQueue5.0/var/mq/instances/imqbroker/props folder.
You have to use the
asadmin set
command after using theimqusermgr
tool: