myfaces-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From skitch...@apache.org
Subject svn commit: r567016 - /myfaces/orchestra/trunk/core/src/main/java/org/apache/myfaces/orchestra/connectionManager/ConnectionManagerDataSource.java
Date Fri, 17 Aug 2007 11:10:18 GMT
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()



Mime
View raw message