0 Replies Latest reply on Mar 16, 2002 7:23 PM by phamlen

    Finding/preventing connection leaks?

    phamlen Newbie

      Having just gone through the painful process of tracking down a "connection leak" problem (ie, one method not returning the connection back to the pool in some error conditions), I'm wondering if there's an easy/foolprof way to ensure that connections get back into the pool when a method is done.

      It seems like possible solutions include:
      1) including a "finally" clause and possibly writing a lint tool to detect when it's missing
      2) getting a freeware/commercial product to do the same thing (anyone know of any?)
      3) finding out from someone if there are any other ways to do it

      Is this an easy problem to solve?