1 Reply Latest reply on Aug 29, 2003 4:52 PM by Ivan O. Parra

    Jboss is closing a datasource connection ???

    edbras Newbie


      I am using Jboss 3.2.2RC2 with Hibernate 2.0 to communicate with the database.
      I only have Stateless ejb's.

      A hibernate session is used to communicate with the database.

      This session is stored in a threadlocal variables as proposed in the best practices of hibernate.
      However, if I go from Ejb A to Ejb B I get an error of Jboss when returning from B to A.
      It gives the exception:
      java.lang.IllegalStateException: Trying to return an unknown connection1! org.jboss.resource.adapter.jdbc.WrappedConnection@2b7632
      Which sound logical when the connection is still hold by the hibernate session when returning from B to A.
      I mean: in A I retrieve a session that is also used in B. However Jboss complains that the session keeps a connection open when quiting B....
      So how do I solve this.... as I want ta keep using this session in A when I return to A from B ? :(