0 Replies Latest reply on Nov 22, 2002 12:53 PM by kyleyj

    "xaRes not enlisted" when closing connection

    kyleyj

      Within my Stateful Session Bean I create a JDBC Connection in ejbCreate. Within ejbRemove I close the connection. This works fine. When the bean is persisted, ejbPassivate closes the connection and ejbActivate creates the connection and everything works fine. However, if after the bean is persisted and the bean is removed, the method conn.close() within ejbRemove throws an IllegalArguementException: xaRes not enlisted.

      What does this mean? Any ideas on how to correctly close the connection after it has been persisted and reactivated?

      Cheers,
      Kyley