"Unable to enlist connection the transaction becuase transaction has been Garbage Collected" ??
Do you mean: "Unable to enlist connection because the transaction has been Garbage Collected" ? Hanson Char On 10/18/07, Rahul Akolkar <[EMAIL PROTECTED]> wrote: > On 10/12/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> 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: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]