Java Reference
In-Depth Information
Changing the Default Host Name
By default, the default host name for the JMS service on the GlassFish Server is loc-
alhost . To access the JMS service from another system, however, you must change the
host name. You can change it either to the actual host name or to 0.0.0.0 .
You can change the default host name using either the Administration Console or the as-
admin command.
To Change the Default Host Name Using the Administration Console
1. On jupiter , start the Administration Console by opening a browser at ht-
tp://localhost:4848/.
2. In the navigation tree, expand the Configurations node, then expand the
server-config node.
3. Under the server-config node, expand the Java Message Service node.
4. Under the Java Message Service node, expand the JMS Hosts node.
5. Under the JMS Hosts node, select default_JMS_host.
The Edit JMS Host page opens.
6. In the Host field, type the name of the system, or type 0.0.0.0 .
7. Click Save.
8. Restart the GlassFish Server.
To Change the Default Host Name Using the asadmin Command
1. Specify a command like one of the following:
Click here to view code image
asadmin set server-config.jms-service.jms-
host.default_JMS_host.host="0.0.0.0"
asadmin set server-config.jms-service.jms-
host.default_JMS_host.host=" hostname "
2. Restart the GlassFish Server.
To Run the Clients Using NetBeans IDE
These steps assume you have the tutorial installed on both of the systems you are using
and that you are able to access the file system of jupiter from earth or vice versa.
Search WWH ::




Custom Search