Monday, May 07, 2007

Installing Windows Services for Websphere Application Server

The default installation of Websphere Application Server bundled with IBM DWE, as of version 9.1 doesn't provide option to install Windows Service for managing WAS. Of course, the WAS standalone installer do provide such an option.

It is too difficult if you/administrator need to start the WAS server manually everytime the machine is restarted or someone accidently logged out the user who started the process. You can copy the start server script to the Startup folder and it would start the server as expected, and other ways too to achieve the same effect.

Personally, I like to use Windows Service to control my processes because of 2 reasons, it integrates with the "Log On As" OS privilege and second, I get to see and click buttons, ;-)

To add Websphere Application Server processes, or Node Agent or Deployment Manager as Windows Services, you can utilize on the WASService.exe utility provided by Websphere resides in \bin.

For example, if you want to add the default profile (WAS 6 above) created by DWE installer as Windows Service, use the following command:


WASService.exe -add "WAS for DWE" -serverName server1 -profilePath


Yup, that's all, dude. Easy right?