2 Replies Latest reply on Jan 30, 2002 2:16 PM by Lamouret

    End of Session

    Lamouret Newbie

      I'm using JBoss 2.2.2 with Tomcat 3.2.2.

      I've a servlet calling a stateful session bean.
      When my client connects to the application, i open a session, and modifies some data in the DB.
      When my client disconnects, i remove the session bean, and invalidate session.
      My SessionBean.ejbRemove method updates data in the DB.

      When there is a problem on my client (close the browser without disconnecting for example), the server close the session automatically, after 30 minutes.
      The trouble is that SessionBean.ejbRemove method isn't called, and data in DB are not modified.

      How can i do to call SessionBean.ejbRemove when the server close automatically a session.

      Thanks for your help,