In order to run as a service, your service component must be added to the host server’s list of services, as follows:
Click the icon for the server in the Servers folder. To install a service as part of the default server configuration, click the default server icon.
The server properties display.
Display the Services tab.
Available service components are displayed with a check box for those that are installed. Install your service by selecting the corresponding check box.
Click Apply to save your changes.
The service runs the next time you refresh or restart the server.