Morning Chinna.
To register the AppSrv01 service as a Windows service, you will need to use the included WASService.exe located in the
\bin directory. Additional information can be found here:
publib.boulder.ibm.com/infocenter/wasinf...As a word of caution, if you have enabled administrative security (and from past posts I believe you have,) you need to specify a username and password that ultimately has credentials to stop the service. Below you can see and example:
WASService.exe
-add
MyServiceName -serverName
hostName_AppSrvr01 -profilePath
D:\IBM\WebSpherebit.0\ND\profiles\AppSrv01\ -wasHome
D:\IBM\WebSpherebit.0\ND\ -logRoot
D:\IBM\WebSpherebit.0\ND\profiles\AppSrv01\logs\hostName\AppSrvr01\ -stopArgs
"-username FOO -password BAR" -startType automatic
The above registeres the WAS service as "IBM WebSphere Application Server v7.0 - MyServiceName" in the Component Services viewer and sets the start type to be Automatic. You may want to consider setting this to "Delayed Start" depending on your OS depending on the start time of the NodeAgent (from personal experience running on windows.) The stopArgs are what I called out in the first paragraph. If you don't include these then the service will likely not stop when you issue the stop server command since it calls the Windows Service to stop the websphere JVM - and you don't have the credentials defined. The rest are normal path arguments.
Good luck and please let us know if it works out for you.
Erik