Uploaded image for project: 'ActiveMQ Classic'
  1. ActiveMQ Classic
  2. AMQ-4382

jdbcPersistenceAdapter does not use lockCreateStatement value

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Duplicate
    • 5.7.0
    • None
    • Message Store
    • 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

          Activity

            People

              Unassigned Unassigned
              jshepher Jason Shepherd
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: