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

JCO connection pool is exhausted

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?

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

3 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Jan 08, 2007 at 05:57 AM

    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

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jan 08, 2007 at 02:54 PM

    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

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Jan 08, 2007 at 08:42 AM

    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.

    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.