我们希望将ActiveMQ 5.3升级到5.6,并保留连接信息。我们就是这么做的,
data\kahadb\下备份文件并卸载AcitveMQ 5.3data\kahadb下的文件如果我的客户数在20左右,那就很好了。如果我的客户数量超过100,我就不能再连接到我的经纪人了。以下是wrapper.log中的日志
Failed to load: class path resource [activemq.xml], reason: Error creating bean with name 'org.apache.activemq.xbean.XBeanBrokerService#0' defined in class path resource [activemq.xml]: Invocation of init method failed; nested exception is org.apache.kahadb.page.Transaction$InvalidPageIOException: Page id is not valid当我们创建一个消费者时,我们遇到了一些例外:
Apache.NMS.ActiveMQ.BrokerException: java.io.EOFException :
Apache.NMS.ActiveMQ.Connection.SyncRequest(Command command, TimeSpan requestTimeout)
Apache.NMS.ActiveMQ.Session.CreateConsumer(IDestination destination, String selector, Boolean noLocal)
Apache.NMS.ActiveMQ.Session.CreateConsumer(IDestination destination)数据库兼容问题吗?或者如何在升级MQ之后保存连接数据?
发布于 2013-05-21 12:38:32
根据这个线程:http://activemq.2283324.n4.nabble.com/Migrate-existing-kahaDB-to-a-new-version-of-ActiveMQ-possible-td4486455.html,如果覆盖DB不起作用,您可以简单地创建一个Camel路由,它将消耗来自旧代理实例的消息,并将它们加载到新代理。但是,有些属性如时间戳或消息ids将被更改。
https://stackoverflow.com/questions/16608772
复制相似问题