Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Duplicate
-
5.7.0
-
None
-
None
-
5.7.0.fuse-71-047-s023
Oracle Database
Description
When using a jdbcPersistenceAdaptor and adapter with lockCreateStatements set, this is not used by org.apache.activemq.store.jdbc.DefaultDatabaseLocker.
<persistenceAdapter>
<jdbcPersistenceAdapter createTablesOnStartup="false"
lockKeepAlivePeriod="10000"
lockAcquireSleepInterval="5000"
cleanupPeriod="0"
dataSource="#oracle-ds-tomcat-dbcp"
maxRows="200">
<statements>
<statements lockCreateStatement="SELECT * FROM ACTIVEMQ_LOCK FOR UPDATE NOWAIT" />
</statements>
</jdbcPersistenceAdapter>
</persistenceAdapter>
In activemq.log:
DEBUG | Locking Query is SELECT * FROM ACTIVEMQ_LOCK | org.apache.activemq.store.jdbc.DefaultDatabaseLocker | main
Attachments
Issue Links
- duplicates
-
AMQ-4581 JDBCPersistenceAdapter can ignore statements settings depending on configuration order.
- Resolved