cancel
Showing results for 
Search instead for 
Did you mean: 

JCO Connection close

Former Member
0 Kudos

Hi All,

I wanted to know is the connection to close the JCO should be handled in the program or the system will handle since I am using the JCO connection handled by content admin with JCo Pool Configuration.

<b>I am seeing in SAP backend all the sessions are still open.</b>

Thanks,

Rakesh

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Rakesh,

If you are using JCo connection yourself explicitly (i.e. gte them from pool yourself), then you must call JCO.releaseClient(jcoClient)

If you are using JCo connection implicitly via Adaptive RFC Model, then you should not close it yourself, but rather call disconnectIfAlive on model.

VS

Former Member
0 Kudos

Valery,

We are having an issue wherein the JCo connections are still listed in AL08 output long after the applications are closed. We do call disconnectIfAlive method after executing the Adapative RFC calls.

Do let me know if there is anyway we can force webdynpro to release connections to the backend or is there any timeout setting in R3 that has to be configured so these connections dont stay open for indefinite time.

Thanks in advance !

Former Member
0 Kudos

Hi,

See this thread.

Kind Regards,

S.Saravanan.