on 03-09-2009 7:50 AM
Hi ,
I have created a portal application which contains an Abstract Portal Component to display the server node the user logs on.
I have written the following code :
IClusterInformation clusterContext =
(IClusterInformation) PortalRuntime.getRuntimeResources().getService( IClusterInformation.KEY);
I too added the Sharing Reference , "com.sap.portal.runtime.system.clusterinformation" to Application Config property in Portalapp.xml file.
But still am getting an error "IClusterInformation cannot be resolved".
Do I need to add some external JAR File to the Java Build Path of my portal Application. If so , Which JAR file I need to add?
Regards,
Eben Joyson.
Hi,
I think you also need the com.sap.portal.runtime.system.clusterinformation_api.jar file to be imported in your project.
Hope that helps you.
Raghu
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I use this to get the server - node:
String node = "";
Enumeration props = System.getProperties().keys();
while (props.hasMoreElements()) {
String thisProp = props.nextElement().toString();
if (thisProp.startsWith("dsr.") && thisProp.endsWith(".buffersize")) {
node = thisProp.substring(5 + thisProp.indexOf("_" + SID + "_"), thisProp.indexOf(".buffersize"));
if (node != null) {
String cluster = node.substring(0, 6) + "00";
node = node.substring(0, 8);
}
}
}
Hope it helps
Johannes
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
10 | |
10 | |
9 | |
7 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.