Using EP6 SP2...
I am doing a JCA connect to R3 in the doInitialization.
I want to do a connection.close when the iview is destroyed.
Is there a method that is called when this occurs?
If not, I am thinking one way might be to do the close in something that is triggered on the body's onUnload event (in the JSP), but I would need the connection object passed to the JSP. Can I set the connection's value in the bean? Or the Session Object?
Is there a better way?
Hello,
There is no built-in functionlaity to invoke the IConnection.close() with the Connector Framework.
Please keep in mind the IConnection.close() do not destroy the physical connection but release the ManagedConnection handler in the connection pool (See JCA documentation for further information) so the physical connection can be reused. It is possible to close the physical connection by changing the Connection LifeTime and clenup thread properties using the Visual Admin tool of the J2EE AS.
Best Regards,
Ran
Add a comment