因爲commons-dbcp升級到commons-dbcp2 數據庫鏈接池的鏈接配置也發生了變化(屬性名變了),
版本1.x中最大活動鏈接數屬性名稱爲:maxActive
版本2.x中最大活動鏈接數屬性名稱爲:
maxTotal 3.重啓activemq 配置完成從新啓動activemq,數據庫就會建立三張表。
錯誤1: INFO | Database lock driver override not found for : [mysql-ab_jdbc_driver].
Will use default implementation.
INFO | Attempting to acquire the exclusive lock to become the Master broker
INFO | Failed to acquire lock.
Sleeping for 1000 milli(s) before trying again...
INFO | Failed to acquire lock.
Sleeping for 1000 milli(s) before trying again...
解決:在persistenceAdapter中添加
useDatabaseLock="false"
錯誤2: Failure Details: Binary logging not possible.
解決:修改my.cnf,把下面幾行打開。
log-bin=mysql-bin
binlog_format=mixed