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

JCO pooling mechanism on EP 5.0 SP5

Hello all,

all examples and documentation about JCO on EP 5.0 SP5 for connecting EP to R/3 talk about using of "pooling mechanism" with classes IJCOClientService and IJCOClientPoolEntry, but these classes use Portal logon information for login/connection to R/3 system and R/3 system have to be defined in files systems.xml and jcodestinations.xml.

Is it possible to use classes IJCOClientService and IJCOClientPoolEntry for connecting to R/3 system with a specific R/3 logon user? Or have we to use "standard" class JCO.PoolManager?

many thanks in advance for every hint and suggestion.

regards

Andrea Bergamasco

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • author's profile photo Former Member
    Former Member
    Posted on Jan 27, 2004 at 01:30 PM

    Andrea,

    You can connect to R/3 system with a specific R/3 logon user for your portal application but you cannot achieve that with IJCOClientService & IJCOClientPoolEntry. You have to use JCO class (com.sap.mw.jco). Here is an example:

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

    JCO.setTraceLevel(0);

    if (pool == null){

    JCO.addClientPool(jco_clientpool, jco_numconnections, jco_client, jco_userid,

    jco_userpwd,

    jco_lang,

    jco_server,

    jco_sysnum);

    }

    // connect to SAP system

    client = JCO.getClient(jco_clientpool) ;

    Hope this is what you were looking for.

    -Neha

    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.