2 Replies Latest reply on Apr 10, 2009 6:41 AM by Dean Pullen

    Session timeout during a transaction

    Dean Pullen Novice


      I've being seeing behaviour like this for a while on JBoss 4.2.x, but can't really understand it.

      A user has been logged in for sometime, then performs a task which takes a longish period ot time (maybe several minutes). During this task, the user, for some reason, has their session timeout, even though they've just performed this recent task.

      Due to a commit during the login process (recording the user's login datetime stamp) the transaction they were performing understandably fails with:

      java.sql.SQLException: You cannot commit during a managed transaction!

      Why is the user's session timing out in the first place?