0 Replies Latest reply on Jun 3, 2003 3:15 PM by Raghu Havaldar

    closing Connection in a generic RA ?

    Raghu Havaldar Newbie


      Have implemented a Generic RA. Using JBoss 3.2.0
      integrated w/ Tomcat 4.1.24. On Win2K, and using
      JDK 1.4

      When the EJB completes invocation of RA, the
      'close' method (which is not manadatory as per the
      JCA spec) of the "Connection" object is invoked by
      the JBoss container (right ?). The EJB does not invoke
      close by itself. Should it ?

      Immediately following the close, a message is posted by
      the CachedConnectionManager stating:
      "[CachedConnectionManager] Successfully closed a connection for you. Please close them yourself: blah.ra.BlahConnectionImpl@1316264"

      Who should close it ? Should the EJB do it (did not
      help, the connection was closed twice !) ? Should
      the RA do it ? How ?

      Please pass on pointers.