You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by sk...@apache.org on 2007/08/17 13:10:18 UTC
svn commit: r567016 -
/myfaces/orchestra/trunk/core/src/main/java/org/apache/myfaces/orchestra/connectionManager/ConnectionManagerDataSource.java
Author: skitching
Date: Fri Aug 17 04:10:17 2007
New Revision: 567016
URL: http://svn.apache.org/viewvc?view=rev&rev=567016
Log:
Add comment only.
Modified:
myfaces/orchestra/trunk/core/src/main/java/org/apache/myfaces/orchestra/connectionManager/ConnectionManagerDataSource.java
Modified: myfaces/orchestra/trunk/core/src/main/java/org/apache/myfaces/orchestra/connectionManager/ConnectionManagerDataSource.java
URL: http://svn.apache.org/viewvc/myfaces/orchestra/trunk/core/src/main/java/org/apache/myfaces/orchestra/connectionManager/ConnectionManagerDataSource.java?view=diff&rev=567016&r1=567015&r2=567016
==============================================================================
--- myfaces/orchestra/trunk/core/src/main/java/org/apache/myfaces/orchestra/connectionManager/ConnectionManagerDataSource.java (original)
+++ myfaces/orchestra/trunk/core/src/main/java/org/apache/myfaces/orchestra/connectionManager/ConnectionManagerDataSource.java Fri Aug 17 04:10:17 2007
@@ -52,6 +52,11 @@
private DataSource dataSource;
private String jndiName;
private ConnectionManagerListener[] listeners;
+
+ // List of connections that have been borrowed by this thread but not returned.
+ // When using a threadpool, it is required that the releaseAllBorrowedConnections
+ // method be called before the thread is returned to the pool; that ensures this
+ // threadlocal is reset to null.
private static ThreadLocal borrowedConnections = new ThreadLocal()
{
protected Object initialValue()