commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Rahul Akolkar" <rahul.akol...@gmail.com>
Subject Re: [dbcp] svn commit: r584222 - /commons/proper/dbcp/trunk/src/java/org/apache/commons/dbcp/managed/TransactionContext.java
Date Thu, 18 Oct 2007 17:22:50 GMT
On 10/12/07, dain@apache.org <dain@apache.org> wrote:
> Author: dain
> Date: Fri Oct 12 11:12:52 2007
> New Revision: 584222
>
> URL: http://svn.apache.org/viewvc?rev=584222&view=rev
> Log:
> Change hard Transation reference to a weak reference so TransactionContext can be garbagecollected
from caches WeakHashMap in TransactionManager
>
> Modified:
>     commons/proper/dbcp/trunk/src/java/org/apache/commons/dbcp/managed/TransactionContext.java
>
<snip/>
> +
> +    private Transaction getTransaction() throws SQLException {
> +        Transaction transaction = (Transaction) this.transaction.get();
> +        if (transaction == null) {
> +            throw new SQLException("Unable to enlist connection the transaction becuase
transaction has been Garbage Collected");
<snap/>

Message is somewhat unclear with a typo, perhaps a missing "to" etc.

-Rahul



> +        }
> +        return transaction;
>      }
>  }
>
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@commons.apache.org
For additional commands, e-mail: dev-help@commons.apache.org


Mime
View raw message