cancel
Showing results for 
Search instead for 
Did you mean: 

handling JCO Connections

Former Member
0 Kudos

Hello All,

In Web Dynpro we are using JCo Connections for connectiong to the R/3 and we have configured our SLD as well.

From a developer stand point do we need to take special precautions while opening and closing the JCO Connections or is it being handled by the Web Dynpro Runtime.

Thanks and Regards

Pradeep Bhojak

Accepted Solutions (0)

Answers (4)

Answers (4)

Former Member
0 Kudos
arun_srinivasan
Contributor
0 Kudos

Hi

After excuting the RFC in the webdynpro application. in the finallay block you have to close the jco connection. If you failed to close it when ever it reach the maximum jco connection (Maximum JCO connection is defined during the creation of JCO Destination) it will through a error

try

{

// Rfc Exceting steps

}

catch (Exception e) {

}

finally

{

<ModelName> mm=(<ModelName>)WDModelFactory.getModelInstance(<ModelName>.class);

mm.disconnectIfAlive();

}

Hope this helps,

Regards,

Arun

Former Member
0 Kudos

no precautions r required...

Former Member
0 Kudos

Hi Pradeep,

From a developer perspective nothing is required.

regards

Sumit