From b22832e2d8dc03c82761d8b687f60e16826ff2b7 Mon Sep 17 00:00:00 2001 From: Gary Tully Date: Thu, 2 Oct 2008 11:44:29 +0000 Subject: [PATCH] fix AMQ-1956 git-svn-id: https://svn.apache.org/repos/asf/activemq/trunk@701088 13f79535-47bb-0310-9956-ffa450edef68 --- .../org/apache/activemq/store/jdbc/JDBCPersistenceAdapter.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/activemq-core/src/main/java/org/apache/activemq/store/jdbc/JDBCPersistenceAdapter.java b/activemq-core/src/main/java/org/apache/activemq/store/jdbc/JDBCPersistenceAdapter.java index c13115ed73..10c23f83ba 100755 --- a/activemq-core/src/main/java/org/apache/activemq/store/jdbc/JDBCPersistenceAdapter.java +++ b/activemq-core/src/main/java/org/apache/activemq/store/jdbc/JDBCPersistenceAdapter.java @@ -264,7 +264,7 @@ public class JDBCPersistenceAdapter extends DataSourceSupport implements Persist } public DatabaseLocker getDatabaseLocker() throws IOException { - if (databaseLocker == null) { + if (databaseLocker == null && isUseDatabaseLock()) { databaseLocker = createDatabaseLocker(); } return databaseLocker;