Hi all,

Managing the deployed web services is becoming mandatory and important,
because the usage of web services is increasing in the enterprise. One
requirement which can arise in managing the web services is to monitor the
availability of the services and to check the status of the services whether
they are up and running. And also service managers may need to perform these
activities periodically. In some cases, services can be down for
maintenance, then there has to be a way for the requesters to check its
availability.

In the current situation invoking the service is the only option to get the
status of the services. But invoking each and every service for this purpose
is not a good idea either.

The above requirements can be satisfied by introducing a pinging capability
to the service deployed in Axis2. Here is how it happens. Users can send
ping requests to the specified services. For these requests, ping responses
can be sent indicating service status.

Extending the AbstractMessageReceiver api with a method(say ping) which
returns a boolean value, will enable message receiver implementors to write
their own logic to test the status of the service. For an example in this
ping method, one can check whether the required dependencies for the service
is available or not.

In order to identify ping requests soapaction can be used. Based on the
soapaction "ping handler" can invoke the ping method of message receiver.

Thanks
Sameera Madushan

Reply via email to