In addition to these steps, you can also perform additional
configuration steps using either the Services applet in Windows
Control Panel or by using the built-in Windows Service Configuration
utility (sc).
For example, if you have a Microsoft SQL Server as the database,
and the database service runs on the same machine instance, you
can create a dependency on that service with the following command:
sc config JBAS51SVC depend= MSSQL$MYSERVER
Update the MSSQL$MYSERVER variable with service
name of the Microsoft SQL Server 2005 service running on the same
server instance.
Note: Ensure that there is no space before the = sign
but after the = sign.
If the command is successful, you will get a response such as
follows:
[SC] ChangeServiceConfig SUCCESS