cancel
Showing results for 
Search instead for 
Did you mean: 

Jco remains active

Former Member
0 Kudos

Hi experts!

I am working on WDJ with adaptive RFC calls.

As i see in the R/3 system the connections do not close.

I've read about disconnectIfAlive(); method, but i do not know how to use it.

Should it be in the Component Controller implementation?

Please guide me !!

Thank u all in advance!!

Accepted Solutions (1)

Accepted Solutions (1)

siddharth_jain
Active Contributor
0 Kudos

Hi,

disconnectIfAlive call will take place where you have called the RFC if it is done in custom controller then it will be in custom controller you can put this code in finally block of your rfc call:

Code snippet:--

} catch (WDDynamicRFCExecuteException e) {

manager.reportException(e.getMessage(), false);

} finally {

// Ensure the RFC connection is closed

try {

<ModelName> modelObj =

(<ModelName>) WDModelFactory.getModelInstance(

<ModelName>.class);

modelObj.disconnectIfAlive();

} catch (Exception e) {

manager.reportException(

"Error, could not disconnect model: " + e.getMessage(),

false);

Edited by: Siddharth Jain on Oct 23, 2008 11:30 AM

Answers (1)

Answers (1)

Former Member
0 Kudos