Saturday, April 21, 2012

Configuring the WebSphere node agent to run as a Windows service

  1. Change to the \bin directory where WebSphere is installed, for example:
       C:\Program Files\IBM\WebSphere\AppServer\bin
  2. Run the following command:
      wasservice -add ctgNode01_nodeagent 
        -servername nodeagent 
        -profilePath "...\IBM\WebSphere\AppServer\profiles\ctgAppSrv01" 
        -wasHome "...\IBM\WebSphere\AppServer" 
        -logFile "...\IBM\WebSphere\AppServer\profiles\ctgAppSrv01\logs\nodeagent\startNode.log" 
        -logRoot "...\IBM\WebSphere\AppServer\ctgAppSrv01\logs\nodeagent" 
        -restart true 
        -startType automatic
  3. Use a registry editor, such as Regedit, and open this key:
      HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\IBMWAS61Service - ctgCellManager01
  4. Create a Multi-String Value named DependOnService.
  5. Enter the value "IBMWAS61Service - ctgNode01_nodeagent" for this new key. This will make the WAS Cell Manager service dependant on the node agent service starting first.

see : http://publib.boulder.ibm.com/infocenter/tivihelp/v10r1/index.jsp?topic=%2Fcom.ibm.srm.doc_7.1%2Finstalling%2Fsrc%2Ft_ccmdb_confignodeagentrtorunasservice.html