on 2005 Jul 26 6:28 AM
Hi,
What is the 'URL' parameter in the following createClient method.. can anyone provide an example?
public static JCO.Client createClient(
java.lang.String client,
java.lang.String user,
java.lang.String passwd,
java.lang.String lang,
java.lang.String url)
Creates an instance of a client connection to a remote SAP system (with load balancing)
Parameters:
..
url - the url to the remote host
Thx
Request clarification before answering.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Serle,
Use following code for creating Client.
client = JCO.createClient( "100", // SAP client
"test", // userid
"*****", // password
"EN", // language
"appserver", // host name
"00" ); // system number
Or you can make connection pool and use client from this pool like:
// Add a connection pool to the specified system
// The pool will be saved in the pool list to be used
// from other threads by JCO.getClient(SID).
// The pool must be explicitely removed by JCO.removeClientPool(SID)
JCO.addClientPool( SID, // Alias for this pool
10, // Max. number of connections
"100", // SAP client
"test", // userid
"*****", // password
"EN", // language
"appserver", // host name
"00" );
// Get a client from the pool
JCO.Client client = JCO.getClient(SID);
Regards,
Bhavik
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
73 | |
30 | |
8 | |
7 | |
6 | |
6 | |
6 | |
4 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.