on 01-10-2008 5:16 AM
Hi
Can anyone tell me how to retrieve the existing jco connection and close it. Can we write that code in wdExit.
Thanks
Vidyadhar
Hi
Thanks for your reply. My problem is that on every refresh of the page I want to close the old connection explicitly and I will create a new connection. So what should I write in init to close the old connection?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi vidyadhar,
try this code
wdContext.currentBAPIElement().modelObject().modelInstance().disconnectIfAlive();
and u dont want to write that code in WDEXIT.
with regards,
sriram
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Following code can be used
AAAAModel thisModel =
(AAAAModel) WDModelFactory.getModelInstance(
AAAAModel.class);
thisModel.disconnectIfAlive();
You can call this code's method in wdDoExit()
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.