on 10-23-2008 10:22 AM
Hi experts!
I am working on WDJ with adaptive RFC calls.
As i see in the R/3 system the connections do not close.
I've read about disconnectIfAlive(); method, but i do not know how to use it.
Should it be in the Component Controller implementation?
Please guide me !!
Thank u all in advance!!
Hi,
disconnectIfAlive call will take place where you have called the RFC if it is done in custom controller then it will be in custom controller you can put this code in finally block of your rfc call:
Code snippet:--
} catch (WDDynamicRFCExecuteException e) {
manager.reportException(e.getMessage(), false);
} finally {
// Ensure the RFC connection is closed
try {
<ModelName> modelObj =
(<ModelName>) WDModelFactory.getModelInstance(
<ModelName>.class);
modelObj.disconnectIfAlive();
} catch (Exception e) {
manager.reportException(
"Error, could not disconnect model: " + e.getMessage(),
false);
Edited by: Siddharth Jain on Oct 23, 2008 11:30 AM
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
90 | |
10 | |
10 | |
10 | |
7 | |
7 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.