In addition to the Admin Console, you can use the asadmin command-line utility to manage the Java Message Service and JMS hosts. Use the following asadmin commands:
Configuring Java Message Service attributes: asadmin set
Managing JMS hosts:
asadmin create-jms-host
asadmin delete-jms-host
asadmin list-jms-hosts
Managing JMS resources:
asadmin create-jms-resource
asadmin delete-jms-resource
asadmin list-jms-resources
For more information on these commands, see Sun GlassFish Enterprise Server 2.1.1 Reference Manualor the corresponding man pages.