on 11-17-2015 6:25 AM
Hello All,
I need to implement a scenario in WD Java DC where depending on user’s country & lang, I need to call ARFC2 model with different RFC Destinations.
I cannot create multiple WD Java PCD objects and pass ‘sap-wd-arfc-useSys’ parameter with suitable value.
There should be only one WD Java PCD page, and when its opened by user, maybe in defaultPlug, I need to write this logic to get user’s country and select suitable destination.
Any ideas on how this can be achieved?
Portal : NW7.4 SP9
Thanks & Regards,
Amey
Hi,
It's possible, you can set the destination name in the constructor.
Please read note: 1920259 - ARFC2: Connecting to multiple backends.
https://service.sap.com/sap/support/notes/1920259
Regards,
Omri
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Please check the below code. its may be useful : WDSystemLandscape API
boolean isconnExists = false;
try {
String[] connectionNames = WDSystemLandscape .getJCOClientConnectionNames(WDSystemLandscape .getCurrentJ2EEClusterName());
for (int i = 0; i < connectionNames.length; i++)
{
String connectionName = connectionNames[i];
if (connectionName.equals(name))
{ isconnExists = true;
break;
}
}
}
catch (WDSystemLandscapeException e1)
{
wdComponentAPI.getMessageManager().reportWarning("Erorr while retrieving the connection names");
}
if (!isconnExists)
{
try
{
IWDJCOClientConnection connection = WDSystemLandscape .createJCOClientConnection("<<JCO ClientName>>" ,5, 10, 30, 10, "<<MessageServerName>>","<<SystemName>>", "<<LogonGroup>>", "<<Client>>", WDUserDefinitionType.getType("useDefinedUser"),"<<user>>","<<password>>", null, null, null, null, null, "en",null);
connection.release();
WDSystemLandscape.invalidateCache();
wdComponentAPI.getMessageManager().reportSuccess(("<<JCO ClientName>> + " created successfully");
}
catch (WDSystemLandscapeException e)
{
wdComponentAPI.getMessageManager().reportWarning(e.getMessage());
}} else {wdComponentAPI.getMessageManager().reportWarning(<<JCO ClientName>>+ " already exists");}
Kindly let me know if you need any more information.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
85 | |
10 | |
9 | |
8 | |
6 | |
6 | |
6 | |
5 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.