Followup to r1133134.
authorkfujino <kfujino@13f79535-47bb-0310-9956-ffa450edef68>
Wed, 8 Jun 2011 08:45:41 +0000 (08:45 +0000)
committerkfujino <kfujino@13f79535-47bb-0310-9956-ffa450edef68>
Wed, 8 Jun 2011 08:45:41 +0000 (08:45 +0000)
I think better not dataSource but dataSourceName.

git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@1133288 13f79535-47bb-0310-9956-ffa450edef68

java/org/apache/catalina/session/JDBCStore.java

index 6c422b1..ed17851 100644 (file)
@@ -1049,7 +1049,7 @@ public class JDBCStore extends StoreBase {
     @Override
     protected synchronized void startInternal() throws LifecycleException {
 
-        if (dataSource == null) {
+        if (dataSourceName == null) {
             // If not using a connection pool, open a connection to the database
             this.dbConnection = getConnection();
         }