cancel
Showing results for 
Search instead for 
Did you mean: 

What is 'URL' parameter in JCO.createClient method?

Former Member
0 Kudos
172

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

Accepted Solutions (0)

Answers (2)

Answers (2)

guru_subramanianb
Active Contributor
0 Kudos

Hi,

Have a look at this following thread you will definitely get some valuable input.

Regards,

Guru

Former Member
0 Kudos

Hi Guru..

Can you clarify pls.. I did not see anything in the link which mentioned how to use JCO.createClient() with the URL parameter

Former Member
0 Kudos

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

Former Member
0 Kudos

Hi Bhavik.. thx for reply, but this does not use the createClient() method with the URL parameter