request processing thread of modern tomcat changed name
authorGuillaume Cottenceau <gcottenc@gmail.com>
Tue, 3 Jul 2012 19:43:17 +0000 (21:43 +0200)
committerGuillaume Cottenceau <gcottenc@gmail.com>
Tue, 3 Jul 2012 19:43:17 +0000 (21:43 +0200)
src/java/org/gc/sdbl4j/DBConnectionPool.java

index 9b4cf72cacb26632868a9276af9daa99b813eb95..e0a4422fda5d7a9f6683084c4c942df4f8933987 100644 (file)
@@ -210,7 +210,8 @@ public class DBConnectionPool {
         } else {
             // sanity
             if ( ! Thread.currentThread().getName().startsWith( "http" )
-                && ! Thread.currentThread().getName().equals( "main" ) ) {
+                 && ! Thread.currentThread().getName().startsWith( "pool" )
+                 && ! Thread.currentThread().getName().equals( "main" ) ) {
                 if ( isSupportedExternalThread( Thread.currentThread().getName() ) ) {
                     log.debug( "Thread identified as being externally created (external library): the DB " +
                                "connections allocated to non-request processing threads MUST be " +