You can configure WebSphere® Application
Server Community Edition as a Windows service.
The Windows service can
then be set to start automatically on system startup. Instances of
the connection manager, the manager, and the service interface that
are on WebSphere Application
Server Community Edition also start automatically on system startup.
The computer must have Microsoft .NET Framework 3.5
or higher installed.
To configure WebSphere Application
Server Community Edition as a Windows service:
- If WebSphere Application
Server Community Edition is not installed to the default location
at C:\IBM\InfoSphere\Optim\shared\WebSphere\AppServerCommunityEdition,
complete the following steps:
- Open the folder in which you installed WebSphere Application Server Community
Edition.
- Open the bin folder, and then open
the appServerService.xml file in that folder
by using a text editor such as Notepad.
- Change the value of the wasceLocation entity
to the folder in which you installed WebSphere Application Server Community
Edition, and save the changed appServerService.xml file.
- Open the optimService.bat file
in that folder by using a text editor such as Notepad.
- Change the
WASCE_BIN
value to server_location\bin
,
where server_location
is the folder
in which you installed WebSphere Application
Server Community Edition, and save the changed optimService.bat file.
For example, you install WebSphere Application
Server Community Edition to D:\Applications\Optim\WASCE.
In this case, use Notepad to open D:\Applications\Optim\WASCE\appServerService.xml and
change the wasceLocation value to D:\Applications\Optim\WASCE.
Next, open D:\Applications\Optim\WASCE\optimService.bat and
change the WASCE_BIN
value to D:\Applications\Optim\WASCE\bin.
- If you configure WebSphere Application
Server Community Edition to use a non-default user name, password,
and port number, configure the service to use these values. By default,
WebSphere Application
Server Community Edition is configured to use system as the user name,
manager as the password, and 1099 as the port number. Complete the
following steps:
- Open the folder in which you installed WebSphere Application Server Community
Edition.
- Open the bin folder, and then open
the optimService.bat file in that folder by using
a text editor such as Notepad.
- Change the
USER
, PASSWORD
,
and PORT
values to the values that you configured
for WebSphere Application
Server Community Edition.
- Open the command prompt by clicking and entering the command cmd.
- Enter the following commands at the command prompt, where
server_location
is
the location in which WebSphere Application
Server Community Edition is installed: cd server_location/bin
appServerService.exe install
appServerService.exe start
You can check on the progress of WebSphere Application Server Community
Edition by looking at the contents of log files. There are 3 log
files:
- server_location/var/log/appServerService.err.log
- server_location/var/log/appServerService.out.log
- server_location/var/log/appServerService.wrapper.log
To stop and uninstall the service, enter the following
commands at the command prompt.
cd server_location/bin
appServerService.exe stop
appServerService.exe uninstall