on 11-18-2008 5:34 PM
Hi ,
I am making rfc call from webdynpro via jco , so how can i get the jco details like the backend system name, client number etc details using the webdynpro.
Thanks.
>
> Hi ,
>
> I am making rfc call from webdynpro via jco , so how can i get the jco details like the backend system name, client number etc details using the webdynpro.
>
> Thanks.
Hello Sameer,
Is your query still not answered?
Regards,
Anagha
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Following is the code
try {
IWDJCOClientConnection jConnection = WDSystemLandscape.getJCOClientConnection("<Name of the JCO>");
jConnection.getClient();
jConnection.getClientName();
jConnection.getMessageServer();
jConnection.getApplicationServer();
} catch (WDSystemLandscapeException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
Regards
Ayyapparaj
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thank you Ayyapparaj, I tried with both the metada and modeldata jco names its giving me
giving me java.lang.NullPointerException .
try {
IWDJCOClientConnection jConnection = WDSystemLandscape.getJCOClientConnection("WD_MODELDATA_DEST");
String client= jConnection.getClient().toString();
String clientname= jConnection.getClientName().toString();
String ms= jConnection.getMessageServer().toString();
String as= jConnection.getApplicationServer().toString();
wdContext.currentContextElement().setClient("client");
wdContext.currentContextElement().setClientname("clientname");
// wdContext.currentContextElement().setMsgserver(ms);
// wdContext.currentContextElement().setAppserver(as);
} catch (WDSystemLandscapeException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
Thanks.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
93 | |
10 | |
10 | |
9 | |
9 | |
7 | |
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.