API to get "deploy" directory

Is there an API available to get the “deploy” directory path of the MWS server?

If not, is there an API available to get the name of the MWS server and the MWS installation directory?

I am trying to avoid hard coding these values in our app.

Thanks,
Vikas.

Yes, there is an API. Try this:

com.webmethods.rtl.util.FileUtil.getRealLocation(“deploy:/”)