cancel
Showing results for 
Search instead for 
Did you mean: 

JCO connection pool is exhausted

Former Member
0 Kudos

hi

I am using RFC module in my web dynpro application. When the application is used for sometime, the JCO connection will get exhusted. The JCO connection will not release itself. I can't find any method in web dynpro to release the connection manually. How can I solve this problem?

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

What is scope of the connection. View properties of MODELDATA and METADATA destinations.

You can change the scope of the connection..

or

wdContext.current<BAPI INPUT>Element().modelObject().modelInstance().disconnectIfAlive();

For more ways , give a forum search.. There are a lot of close forum posts.. Gud luc..

Regards

Bharathwaj

Answers (2)

Answers (2)

Former Member
0 Kudos

hi,

check out this blog. it might be useful.

/people/sap.user72/blog/2005/01/08/adaptive-rfc-models-in-web-dynprosome-pointers

Regards,

Gopi

monalisa_biswal
Contributor
0 Kudos

You can override scope of model object by calling following method before calling execute method on model object..

<Model Name> <var> =

<Model Name>WDModelFactory.getModelInstance(

<Model Name>.class,WDModelScopeType.TASK_SCOPE);

It will release the connection after successfull execution of RFC method.