on 01-24-2008 12:51 PM
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
Can you post your answer here for others that might have this same problem in the future?
Thanks,
Lee
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks,
I got the answer
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.