Friday, May 8, 2009

STARTUP/SHUTDOWN GLASSFISH ADMIN SERVER

The ‘asadmin’ utility is used to perform several administrative tasks on the Application Server. The server life cycle commands such as ‘start-domain’ is used to start the domain named domain-1 and ‘stop-domain’ is used to stop the Administration Server of the domain-1.

How to start?

log in as root:

#cd /www/opt/SUNWappserver/bin

#./asadmin start-domain domain1

#./asadmin start-node-agent

Starting Domain domain1, please wait.

Log redirected to ..........\domain1\logs\server.log.

Redirecting output to ..........\domains\domain1\logs\server.log

Domain domain1 started.

Domain [domain1] is running [Sun Java System Application Server 9.1_01 (build b09d-fcs)] with its configuration and logs at: [.......\domains].

Admin Console is available at [http://localhost:4848].

Use the same port [4848] for "asadmin" commands.

User web applications are available at these URLs:

[http://localhost:8080 https://localhost:8181 ].

Following web-contexts are available:

[/web1 /__wstx-services jpa-example ].

Standard JMX Clients (like JConsole) can connect to JMXServiceURL:

[service:jmx:rmi:///jndi/rmi://rajus01-755:8686/jmxrmi] for domain management purposes.

Domain listens on at least following ports for connections:

[8080 8181 4848 3700 3820 3920 8686 ].

Domain supports application server clusters and other standalone instances.

How to stop?

#cd /www/opt/SUNWappserver/bin

#./asadmin stop-node-agent

#./asadmin stop-domain domain1

Domain domain1 stopped.