users@glassfish.java.net

Autostarting instance2 in cluster setup

From: Poul Møller Hansen <freebsd_at_pbnet.dk>
Date: Tue, 20 Mar 2012 12:07:26 +0100

I have made a two node cluster setup with Glassfish 3.1.2 on Ubuntu
10.04 LTS, and it works like a charm.

However autostarting the services is a problem for me.

On the DAS I have altered the startup script, so it is also starting the
cluster.
> case "$1" in
> start)
> $ASADMIN start-domain --domaindir /opt/glassfish3/glassfish/domains domain1
> $ASADMIN start-cluster cluster1
> ;;
> stop)
> $ASADMIN stop-cluster cluster1
> $ASADMIN stop-domain --domaindir /opt/glassfish3/glassfish/domains domain1
> ;;

Is this the way of doing it ?

How can I autostart the cluster instance on the second node after reboot ?


Thanks
Poul