2 Replies Latest reply on May 2, 2002 5:36 AM by Vad

    JBoss3RC1, returning connections

    Vad Newbie

      Hi David,

      I use NoTxConnectionManager. May you confirm that method connectionClosed() lacks this line of code :

      ManagedConnection mc = (ManagedConnection)ce.getSource();
      returnManagedConnection(mc, false);

      Maybe it's already corrected ?

      Vad

        • 1. Re: JBoss3RC1, returning connections
          David Jencks Master

          Thanks, I think there are several problems there... I don't have time to test right this minute, can you check if this works (it compiles, but that's all I checked):

          public void connectionClosed(ConnectionEvent ce)
          {
          getCcm().unregisterConnection(NoTxConnectionManager.this, ce.getConnectionHandle());
          try
          {
          unregisterAssociation((ManagedConnection)ce.getSource(), ce.getConnectionHandle());
          if (isManagedConnectionFree())
          {
          returnManagedConnection(this.getManagedConnection(), false);
          }
          }
          catch (ResourceException re)
          {
          log.error("ResourceException while closing connection handle!", re);
          } // end of try-catch

          }

          • 2. Re: JBoss3RC1, returning connections
            Vad Newbie

            Hi David,

            I will upgrade to RC2, because in the RC1 source code, unregisterAssociation() takes only the mc as argument. I have still made the change, but other problems occur : cleanup() is called twice on the mc, once in BaseConnectionmanager2.unregisterAssociation() and once in InternalManagedConnectionPool.returnConnection()...

            I'll tell you about my testing.

            vad