Use the Administration Console. Open the Java Message Service component under the relevant configuration, then select the JMS Hosts component. For details, click the Help button in the Administration Console.
Use the asadmin create-jms-host command. For details, see the Oracle GlassFish Server 3.0.1 Reference Manual.
For machines having more than one host, use the Host field in the Administration Console or the ---–mqhost option of create-jms-host to specify the address to which the broker binds.