users@glassfish.java.net

Re: restarting cluster node automatically

From: <glassfish_at_javadesktop.org>
Date: Thu, 08 Jan 2009 10:02:48 PST

Rogier,

Here's how we setup nodeagent services in windows:

sc.exe create GF2node binPath= "C:\glassfish\lib\appservAgentService.exe \"C:\glassfish\bin\asadmin.bat start-node-agent --user admin --passwordfile C:\glassfish\password.txt node01\" \"C:\glassfish\bin\asadmin.bat stop-node-agent node01\"" start= auto DisplayName= "GF2 Nodeagent"

Note:

I believe you need both:
AS_ADMIN_PASSWORD=<admin password>
and
AS_ADMIN_MASTERPASSWORD=<master password>
in the password file for the nodeagent to start as a service.

HTH,
Andrew
[Message sent by forum member 'areplogle' (areplogle)]

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