on 08-06-2009 1:05 PM
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
I misunderstood jco pool with jco destination...
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
You need to maintain the missing entry for ashost, Please check note 543870.
Thank you,
Shyam
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
80 | |
9 | |
9 | |
7 | |
7 | |
6 | |
6 | |
6 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.