cancel
Showing results for 
Search instead for 
Did you mean: 

JCo Pool Connection filed. 'ashost' is missing

Former Member
0 Kudos

Hello Experts,

I'm trying to connect to a SAP backend system using the JCo connection.

I've tyed with the standard connection, crating dinamically the connection and it works fine:

mConnection = JCO.createClient("001", // SAP client

"sap.user", // userid

"********", // password

"IT", // language

"ashost.domain.dom", // application server host name

"06"); // system number

mConnection.connect();

But if I try to use the JCo Destination, calling a Pool it doesn't work!

I get the error message "com.sap.mw.jco.JCO$Exception: (101) RFC_ERROR_PROGRAM: 'ashost' is missing".

I've tryed also to create a Pool dinamically, passing the same parameters of the working connection.. but the error message is the same..

Properties p = new Properties();

p.put("jco.client.ashost","ashost.domain.dom");

p.put("jco.client.client","001");

p.put("jco.client.user","sap.user");

p.put("jco.client.lang","IT");

p.put("jco.client.passwd","********");

p.put("jco.client.sysnr","06");

JCO.addClientPool(POOL_NAME, // pool name

5, // maximum number of connections

p); // properties

mConnection = JCO.getClient(POOL_NAME);

The system used by the Pool passes succesfully the Test Connection for the 'SAP Web AS Connection' ...

What can be the problem???

Best Ragards

Accepted Solutions (0)

Answers (4)

Answers (4)

Former Member
0 Kudos

I misunderstood jco pool with jco destination...

Former Member
0 Kudos

Excuse me, but I need an explanation...

... when I write "mConnection = JCO.getClient(POOL_NAME);" I'm defining a new connection calling a POOL, but in my WebDynpro Console I've defined JCo Destinations element !

Which is the link between JCo Destination and Pool ??

I suppose that every JCo Destination has its own Pool..

But How can I choose, in my java code, which JCo Destination to use ???

Best Regards

Former Member
0 Kudos

hi

you should have to maintain the ashost in the host file.

this file u can get in the follwoing path *drivers->etc->host*

there give u r host ipaddress

and thn check it.

Thanks

Bharathi.Ch

Former Member
0 Kudos

Hi,

You need to maintain the missing entry for ashost, Please check note 543870.

Thank you,

Shyam