0 Replies Latest reply on Oct 2, 2006 8:04 PM by Milind Duraphe

    Oracle Database connection getting reset

    Milind Duraphe Newbie

      We are using JBoss 4.0.4 with Oracle 10g. We are using ojdbc14.jar as the driver.

      I have a session bean for which transaction attribute is

      When this session bean calls a stored procedure, if the stored procedure takes a long time, i.e more than an hour, we get an exception -

      java.sql.SQLException: Io exception : Connection reset

      We narrowed it down and found that exception happens at exactly 60 minutes.

      Yes, no one should expect to run a stored procedure which takes more one hour and I have asked developers to fix it. However I want to find out why it happened. If we wrap the stored procedure call in a session bean method with "RequiresNew", this seems to work.

      Is there any parameter which controls this timeout? The Transaction-timeout in jboss-service.xml is set to high number (180 minutes) so there must be some other parameter.

      What am I missing? (oracle-ds.xml is attached).

       <new-connection-sql>select '1' from dual</new-connection-sql>
       <check-valid-connection-sql>select '1' from dual</check-valid-connection-sql>