This content has been marked as final. Show 7 replies
Can't you use the ApplicationModuleImpl.reconnect(true) method ?
AS per http://docs.oracle.com/cd/B14099_19/web.1012/b14022/oracle/jbo/client/remote/ApplicationModuleImpl.html#reconnect_boolean_ -
"Reconnect the application module to the database, if necessary, using previously supplied database credentials. If the parameter is true, then a database disconnect and reconnect is performed, whatever the current connection state. If false, the connect is only performed if the connection has disappeared."
You may use
on the condition and then use
to re-establish the connection. This disconnection and reconnection affects the performance.
use the below urls
Still looking for reconnect method.
We need it to provide database proxying which is called in AppModule:prepareSession method. A user enters his password which is used in prepareSession method.
The problem is after inicial connection establishing this method is not called anymore - even though the password was wrong. We need to force AppModule to disconnect.
Now we are investigating "Disconnect Application Module Upon Release" app module property (Application Module configuration - Pooling and Scalability tab).
With this property unchecked app module really disconnects and calling prepareSession next time app module is used, but disconnect happens every request even though "Application Module Pooling" is checked.
Is it expacted behavior? "Upon Rlease" means "after serving every request"?
Event though this method allows us to disconnect app module when there was a wrong password and establish connection with another password, I believe it leads to huge performance issues as every app module is establishing new connection every request. Correct?
Any help would be appreciated.
Edited by: ILya Cyclone on Jul 4, 2012 1:48 PM