cancel
Showing results for 
Search instead for 
Did you mean: 

jco.disconnect() does not close sessions in the backend

Former Member
0 Kudos

Hi,

I have created a web service using stateless ejb which in turn calls RFC function. I am using JCO.createClient() function to create connection. I am also able to retieve data from rfc function. After that I am disconnecting jco with

jco.disconnect() function. But still the session remains open in the backend.Hence if max. connections are reached, I can't connect to backend.

Is there any way to close sessions which are opened in the backend?

Best regards,

Nilesh

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

Can you post your answer here for others that might have this same problem in the future?

Thanks,

Lee

Former Member
0 Kudos

Thanks,

I got the answer

former_member197348
Active Contributor
0 Kudos

I don't know whether this helps you. If you can disconnect the modelInstance like this just before Jco, it may work for you.

wdContext.current<RFC>Element().modelObject().modelInstance().disconnectIfAlive();

jco.disconnect()

regards,

Siva

Edited by: Siva Rama Krushna on Jan 24, 2008 6:32 PM

Former Member
0 Kudos

Thanks for reply,

I am not using webDynpro. I have created a web service & I am executing the same from Flex application using its wsdl.

Best regrads,

Nilesh