Skip to Content
author's profile photo Former Member
Former Member

Q about the diff methods in the *.java file of PDK iView...

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?

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • author's profile photo Former Member
    Former Member
    Posted on Nov 02, 2004 at 08:21 AM

    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
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.