on 07-18-2006 10:16 AM
hi,
Can u pls tell me how to create connectionpooling for JCO.
regards
Guru
Hi,
There is a tutorial in PDF format with the JCo itself in the Service Market place.
By the way, I found this link :
Best regards,
Guillaume
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Guru
Here is the sample program:
***********************************************
import com.sap.mw.jco.*;
public class Connect2 extends Object {
<b>static final String POOL_NAME = "Pool";</b>
JCO.Client mConnection;
public Connect2() {
try {
<b>JCO.Pool pool = JCO.getClientPoolManager().getPool(POOL_NAME);</b>
if (pool == null) {
OrderedProperties logonProperties =
OrderedProperties.load("/logon.properties");
JCO.addClientPool(POOL_NAME, // pool name
5, // maximum number connections
logonProperties); // properties
}
mConnection = JCO.getClient(POOL_NAME);
System.out.println(mConnection.getAttributes());
}
catch (Exception ex) {
ex.printStackTrace();
}
finally {
JCO.releaseClient(mConnection);
}
}
public static void main (String args[]) {
Connect2 app = new Connect2();
}
}
**********************
<b>Documentation is here :</b> <a href="http://help.sap.com/saphelp_nw04/helpdata/en/6f/1bd5c6a85b11d6b28500508b5d5211/frameset.htm"><b>JCO Document</b></a>
Thanks
Jack
<b>Allot points if my post helps!!!!</b>
Message was edited by: Jack
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 | |
10 | |
10 | |
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.