on 02-21-2018 6:56 AM
Hi All,
I want to read system properties like Host, Port etc by passing the System Alias.
i found below code from help.sap.com
ISystemLandscape portalLandscape = UMFactory.getSystemLandscapeFactory().getLandscape(ISystemLandscape.TYPE_ENTERPRISE_PORTAL);
if(portalLandscape == null) {
throw new Exception("It seems like no Enterprise Portal is installed.");
}
ISystemLandscapeObject systemObject;
try {
systemObject = portalLandscape.getSystemByAlias("TestSAPBackend");
}
catch(ExceptionInImplementationException e) {
throw new Exception("An error occurred while retrieving the test system object.", e);
}
But this is giving me syntax error "The method getSystemLandscapeFactory() is undefined for the type UMFactory" at below line
UMFactory.getSystemLandscapeFactory().getLandscape(ISystemLandscape.TYPE_ENTERPRISE_PORTAL);
I am not able to find/add relevant dependency DC related to UMFactory as mentioned in help.sap.
Request you to please share the code on how to achieve this.
Thanks
Satish
Hi Satish,
In your NWDS directory look in plugins folder for "com.sap.security_<version-info>.jar" and add it to your build path. The version info on your jar is possibly different to mine. In NWDS 7.50 I checked the jar and I have UMFactory class.
Let me know how you get on,
Best regards,
Nick
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
89 | |
10 | |
9 | |
9 | |
9 | |
6 | |
6 | |
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.