cancel
Showing results for 
Search instead for 
Did you mean: 

JCOClientConnection and pool size

Former Member
0 Kudos

Hello all,

I have a WD project, when a single user run it, everything is working fine.

The problem occurs when you make a multiple entries to the application... Several users or logging in and out several time.

I suddenly get a message saying:

"Could not create JCOClientConnection for logical System: WD_XXXXXXX_MODELDATA_DEST - Model: class XXXX.model.XXXXX. Please assure that you have configured the RFC connections and/or logical System Name properly for this model! "

My guess is that the problem is with the JCO pool size.

Here is my configuration:

Maximum Pool Size - 40

Maximum Connections - 30

ConnectionTimout - 10

Maximum Wait Time - 30

Any suggestions?

Accepted Solutions (0)

Answers (3)

Answers (3)

0 Kudos

Hi Yaniv,

try this piece of code afrer executing the model.

<Model Name> myModel = (<Model Name>)WDModelFactory.getModelInstance(<Model Name>.class);

myModel.disconnectIfAlive();

This will get the model instance and disconnects it after executing provided the connection is alive.

Regards,

Shyam

Former Member
0 Kudos

First, thanks for the quick reply...

Second, I've read the documents, followed the instructions and changed my configuration, but with no success...

The error keeps appearing.

I've started thinking that maybe the java connection isn't closed at all, and maybe my application keep creating new ones until it's stuck...

can it be?

Former Member
0 Kudos

Hi,

Please go through the following.

https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/documents/a1-8-4/how to configure the jco destination settings.pdf

Regards, Anilkumar