cancel
Showing results for 
Search instead for 
Did you mean: 

How to access Portal Service from Webdynpro

Former Member
0 Kudos

Hi All

I have a Service to get the server node on which the application is running - <b>com.sap.portal.runtime.system.clusterinformation.clusterinformation</b>.

In portal its simple to get this service but how this can be done in webdynpro ?

In Portal we have used Portal Runtime to obtain the service object.

IClusterInformation clusterInfo =

(IClusterInformation) PortalRuntime

.getRuntimeResources()

.getService(

"com.sap.portal.runtime.system.clusterinformation.clusterinformation");

How can this be done from Webdynpro ?

Pls help.

Suitable points will be rewarded

Kindly send me the pdfs related to this if you have any

Regards

Sonal Mangla

Message was edited by:

Sonal Mangla

Accepted Solutions (0)

Answers (1)

Answers (1)

Sharadha1
Active Contributor
0 Kudos

Hi sonal,

Refer this thread..It has the solution

Regards,

sharadha

Former Member
0 Kudos

Hi Shraddha

I have written something like

IClusterInformation clusterInfo =

(IClusterInformation) WDPortalUtils.getServiceReference("com.sap.portal.runtime.system.clusterinformation.clusterinformation");

String serverJ2eeDirectory =

clusterInfo.getSAPJ2EEServerDirectory();

But it is giving the following error

com.sapportals.portal.prt.service.clusterinformation.ClusterInfoDispatcher incompatible with com.sapportals.portal.prt.service.clusterinformation.IClusterInformation

Am i wrong anywhere or have i missed anything

Pls help

Regards

Sonal Mangla