From the directory where the domain.xml file resides (domain-dir/config by default), run the following asadmin command:
asadmin create-password-alias --user admin alias-name |
For example,
asadmin create-password-alias --user admin jms-password |
A password prompt appears (admin in this case). Refer to the man pages for the create-password-alias, list-password-aliases, delete-password-alias commands for more information.
Remove and replace the password in domain.xml using the asadmin set command. For example:
asadmin set --user admin server.jms-service.jms-host.default_JMS_host.admin-password='${ALIAS=jms-password}' |
Restart the Application Server for the relevant domain.