Skip to Content
0
Aug 14, 2009 at 10:15 AM

JCo - Can someone tell me how the GWHOST and GWSERV values are derived?

670 Views

We have successfully been using JCo for some years now in a web application. However, recently on our TST server this has started failing.

The exception is this:

com.sap.mw.jco.JCO$Exception: (102) RFC_ERROR_COMMUNICATION: SAP_CMINIT3 : rc=20 > Connect to SAP gateway failed

Connect_PM GWHOST=127.0.0.1, GWSERV=3301, SYSNR=01

I can see why this is failing ... because the GWHOST and GWSERV are incorrect! However, I don't know why they are wrong when we have the correct logon properties specified and the correct entry in the "services" file on our Windows server.

Can someone tell me how the GWHOST and GWSERV values are derived?

For information our logonProperties file contains:

jco.client.client=900

jco.client.user=webupdate

jco.client.passwd=<hidden>

jco.client.lang=EN

jco.client.mshost=ecctst

jco.client.r3name=TST

jco.client.group=WEB_USER

Services file contains this entry:

sapmsTST 3601/tcp

We establish a connection using

JCO.addClientPool("R3", 10, logonProperties ) ;