on 06-29-2007 12:45 PM
Hi All,
I'm creating a Web Service which usesa JCO connection to the SAP system. I don't want to configure this Web Service - JCO connnection on every system it gets deployed. To achieve this I want to read the JCo Destination Details out of the Web Dynpro content administrator and use data for the destination defined here.
Does anyone know how to read these Details?
Thanks,
Jeschael
Hi,
ConnectionData cds;
String channel = ConnectionData.channelSapEsp;
String systemAlias = "AM_100";
String j2eeClusterName = WDSystemLandscape.getCurrentJ2EEClusterName();
try{
IWDJCOClientConnection clientConn1 = WDSystemLandscape.createJCOClientConnection(
"JCONAME", 10, "ldci.test.host", "SystemID", "PUBLIC", "300", WDUserDefinitionType.DEFINED_USER,
"USERID", "PWD", "en");
}catch(Exception e){}
IWDJCOClientConnection client = WDSystemLandscape.getJCOClientConnection("JCONAME");
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Jeschael,
informations about WD JCO destinations are available in the SLD. Please refer to the following <a href="/people/anilkumar.vippagunta2/blog/2007/02/06/dynamic-jco-creation, i hope, it's still up to date. The blog states the possiblity to create destinations programatically (which is not really recommended), but there are also API methods available to read the configuration data.
Hope that helps.
Regards
Stefan
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
24 | |
12 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.