Skip to Content
author's profile photo Former Member
Former Member

Connection to a load balancing server

Hi everybody!,

I have this code to connect to R3 System, and it works OK:

public void getPoolConnectionR3() {

try {

JCO.Pool pool = JCO.getClientPoolManager().getPool(POOL_NAME_R3);

if (pool == null)

{

JCO.addClientPool(

POOL_NAME_R3, // SID (Alias)

1000, // Max. parallel connections

client, // SAP client

usuario, // user name

password, // password

language, // language

hostName, // host name

system // system number

);

}

CnSap = JCO.getClient(POOL_NAME_R3);

CnSap.connect();

}

catch (Exception ex) {

ex.printStackTrace();

}

}

My question is, how can I connect to a load balancing server? Any suggestion will be helpful!

Thanks

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • Best Answer
    Posted on Nov 21, 2005 at 10:24 PM

    Hello Leslie,

    have a look at the JCo Java Docs and you will find:

    addClientPool(java.lang.String key, int max_connections, java.lang.String client, java.lang.String user, java.lang.String passwd, java.lang.String lang, java.lang.String mshost, java.lang.String r3name, java.lang.String group)

    Regards

    Gregor

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.