on 05-24-2007 12:29 PM
Hi All
I need to get full Application server path on which the application is deployed
for eg <b>/usr/sap/RIU/JC20/2ee/cluster/server0</b>
Actually i need to extract the cluster information like <b>RIU</b> in this case.
How can i do so ? Which Webdynpro APIs can be used.
Please help
Regards
Sonal Mangla
Message was edited by:
Sonal Mangla
null
Hi,
You can get the application url like this.
String deployableObjectName = wdComponentAPI.getDeployableObjectPart().getDeployableObjectName();
String part = wdComponentAPI.getApplication().getDeployableObjectPart().getName();
try {
WDDeployableObjectPart deployableObjectPart =WDDeployableObject.getDeployableObjectPart( deployableObjectName, part,WDDeployableObjectPartType.APPLICATION);
String applicationURL1 = WDURLGenerator.getAbsoluteWebResourceURL(deployableObjectPart) ;
wdComponentAPI.getMessageManager().reportSuccess("urlToTargetApp"+applicationURL1);
} catch (WDURLException e)
{
wdComponentAPI.getMessageManager().reportException("Exception:"+e,true);
}
catch (WDDeploymentException ex)
{
wdComponentAPI.getMessageManager().reportException("Exception:"+ex,true); }
Also check this thread for getting the server name
https://forums.sdn.sap.com/click.jspa?searchID=2783356&messageID=329724
Regards,
Vijai
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
I don't think it's possible to retrieve the full server path from the <i>WDSystemLandscape</i> class, but if you add the SLD jars (sldclient.jar) to your project, you can use the <i>SystemExplorer</i> class. It has a method called <i>getJ2EEClusterSID</i>. This might be what you want (I'm not too sure though).
Regards,
Satyajit.
User | Count |
---|---|
84 | |
23 | |
11 | |
9 | |
8 | |
5 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.