on 07-08-2015 9:14 PM
I've been trying to connect a java program to SAP using JCO Java connectors (latest version 3.0.13). I was having trouble and i was told that the problem was that i was trying to connect directly and i need to connect via saprouter. There's a connection property called saprouter where i need to place the sap router string. I've only found the way to specify such string for JCO (v 2.xx) and it is: /H//H/
Is this the same for JCO in its latest versison? If so, the specification of connection properties will be done well like this?
Properties connectProperties = new Properties();
connectProperties.setProperty(DestinationDataProvider.JCO_ASHOST, "xx.xx.x.xx");
connectProperties.setProperty(DestinationDataProvider.JCO_SYSNR, "00");
connectProperties.setProperty(DestinationDataProvider.JCO_CLIENT, "020");
connectProperties.setProperty(DestinationDataProvider.JCO_USER, "xxxxx");
connectProperties.setProperty(DestinationDataProvider.JCO_PASSWD, "xxxxxx");
connectProperties.setProperty(DestinationDataProvider.JCO_LANG, "en");
connectProperties.setProperty(DestinationDataProvider.JCO_SAPROUTER, "/H/<saprouter>/H/<hostname>");
Hi Fernando,
DestinationDataProvider.JCO_SAPROUTER only needs to contain the SAPRouter host: /H/<saprouter>/H/. In case the addressed SAProuter doesn't use the default port 3299, you also put the port like this: /H/<saprouter>/S/<saprouterport> All other properties can remain the same.
Best regards,
Markus
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
95 | |
11 | |
11 | |
10 | |
9 | |
8 | |
6 | |
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.