因为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