Skip to Content
author's profile photo
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 comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

1 Answer

  • author's profile photo
    Former Member
    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 comment
    10|10000 characters needed characters exceeded