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?
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
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