users@glassfish.java.net

How to specify the hostname for glassfish

From: <glassfish_at_javadesktop.org>
Date: Tue, 23 Dec 2008 04:09:37 PST

HI guys,
I am working with glassfish v2 on a Solaris machine.
I need to configure glassfish to not to be tied to a hostname but to Solaris masterservice that is specified in /etc/hosts
When I start glassfish

Log redirected to /opt/glassfish/domains/domain1/logs/server.log.
Redirecting output to /opt/glassfish/domains/domain1/logs/server.log
Domain domain1 is ready to receive client requests. Additional services are being started in background.
Domain [domain1] is running [Sun Java System Application Server 9.1_02 (build b04-fcs)] with its configuration and logs at: [/opt/glassfish/domains].
Admin Console is available at [http://[b]localhost[/b]: 4848].
Use the same port [4848] for "asadmin" commands.
User web applications are available at these URLs:
[http://l[b]ocalhost[/b]:8080 https://[b]localhost[/b]:8181 ].
Following web-contexts are available:
[/web1 /__wstx-services /aspects /cam /camBpelPlugin ].
Standard JMX Clients (like JConsole) can connect to JMXServiceURL:
[service:jmx:rmi:///jndi/rmi://[b]pmercik4[/b]:8686/jmxrmi] for domain management purposes.
Domain listens on at least following ports for connections:
[8080 8181 4848 3700 3820 3920 8686 ].

Basically i need to configure glassfish to point to the masterservice instead of hostname [pmercik4 and possibly localhost]

Is there anyway of changing this?

Thanks for Your help,

Best regards,
Pawel
[Message sent by forum member 'pmercik' (pmercik)]

http://forums.java.net/jive/thread.jspa?messageID=323085