The Sun Java System Message Queue software uses a default directory for storing data such as persistent messages and its log file. This directory is called varhome. The Application Server uses domain-dir/imq as the varhome directory. Thus, for the default Application Server domain, Message Queue data is stored in the following location:
install-dir/domains/domain1/imq/var/instances/imqbroker
Version 7 of the Application Server stored this data in the following location:
install-dir/imq/var/instances/domain1_server
When executing Message Queue scripts such as install-dir/imq/bin/imqusermgr, use the -varhome option. For example:
imqusermgr -varhome $AS_INSTALL/domains/domain1/imq add -u testuser -p testpassword