Product: OpenFusion Notification Service
Version: ALL
Description:
How to determine the status of a service?
Resolution:
The status of the service can be determined by either using the server script (which is in the bin directory of the installation) or programmatically.
1. Using the server script
The server script takes a control parameter and the name of the service.
To find out the status of the Notification Service, for example, you can use the command:
server -status NotificationService
This will return one of the following status values:
- Running: The service is running.
- Stopped: The service has been running previously and has now stopped.
- Unknown: The service has never been started
- Timed Out: It has not been possible to determine the status of the service
2. Programmatically
An alternative mechanism to get the state of the service is to call the _non_existent method on the process object associated with the service. This will determine if the service is still active. The Process object's IOR is written to the location specified by the IOR_URL property on the 'CORBA' tab of the Process Singleton. This is visible if you expand the Service node in the OpenFusion Manager.
#OpenFusion
#OpenFusionCORBAService
#KnowledgeDocs