Get the name of the java service at run time

Hi;

How can i get the name of my Java service(which is actually being used/running) at runtime in Developer.Are there some IS APIs for this ?

thanx…

I’m not sure if there is an IS API that provides this but there might be. What IS API classes have you looked at?

You might consider the Java introspection facilities as well.

may be this wud give u that
Service.getServiceEntry()
Given the input Values, returns the NSService currently being invoked.

hi ritesh;

thanx for the reply…it works. It returns back the fully qualified service name and thus requires a bit of string manipulation for extracting the Service Name only.

thanx…