AskOverflow.Dev

AskOverflow.Dev Logo AskOverflow.Dev Logo

AskOverflow.Dev Navigation

  • 主页
  • 系统&网络
  • Ubuntu
  • Unix
  • DBA
  • Computer
  • Coding
  • LangChain

Mobile menu

Close
  • 主页
  • 系统&网络
    • 最新
    • 热门
    • 标签
  • Ubuntu
    • 最新
    • 热门
    • 标签
  • Unix
    • 最新
    • 标签
  • DBA
    • 最新
    • 标签
  • Computer
    • 最新
    • 标签
  • Coding
    • 最新
    • 标签
主页 / server / 问题 / 733090
Accepted
Hayate
Hayate
Asked: 2015-11-02 02:03:12 +0800 CST2015-11-02 02:03:12 +0800 CST 2015-11-02 02:03:12 +0800 CST

如何启用 ActiveMQ 持久性?

  • 772

我想在 amq 或机器重启后保存未使用的消息。此文档是否适用于 ActiveMQ 5.12.1 版本?我尝试使用文档中的示例并得到错误:

错误 | 加载失败:类路径资源 [activemq.xml],原因:来自类路径资源 [activemq.xml] 的 XML 文档中的第 86 行无效;嵌套异常是 org.xml.sax.SAXParseException;行号:86;列号:90;cvc-complex-type.2.4.a:发现以元素“kahaPersistenceAdapter”开头的无效内容。'{" http://activemq.apache.org/schema/core ":jdbcPersistenceAdapter、" http://activemq.apache.org/schema/core ":journalPersistenceAdapter、" http://activemq.apache.org之一/schema/core ":kahaDB, " http://activemq.apache.org/schema/core ":levelDB, " http://activemq.apache.org/schema/core ":mKahaDB, " http://activemq .apache。":memoryPersistenceAdapter, " http://activemq.apache.org/schema/core ":replicatedLevelDB, WC[##other:" http://activemq.apache.org/schema/core "]}' 是预期的。

几乎默认配置会发生此错误:https ://yadi.sk/d/e8tWyIzyk9piV

好吧,我将 kahaPersistenceAdapter 替换为 kahaDB 并重新启动。并得到错误:

属性“maxDataFileLength”不允许出现在元素“kahaDB”中。

我替换了这个属性并启动了 ActiveMQ。我将消息发送到队列,重新启动 amq 并且我未使用的消息消失了。我做错了什么?

activemq
  • 1 1 个回答
  • 334 Views

1 个回答

  • Voted
  1. Best Answer
    Hayate
    2015-11-07T22:39:54+08:002015-11-07T22:39:54+08:00

    好吧,您只需要发送带有消息的特殊标头即可。

    $amq_headers['persistent'] = "true";
    

    你的信息仍然存在。

    • 0

相关问题

  • 加密 MSMQ

Sidebar

Stats

  • 问题 205573
  • 回答 270741
  • 最佳答案 135370
  • 用户 68524
  • 热门
  • 回答
  • Marko Smith

    新安装后 postgres 的默认超级用户用户名/密码是什么?

    • 5 个回答
  • Marko Smith

    SFTP 使用什么端口?

    • 6 个回答
  • Marko Smith

    命令行列出 Windows Active Directory 组中的用户?

    • 9 个回答
  • Marko Smith

    什么是 Pem 文件,它与其他 OpenSSL 生成的密钥文件格式有何不同?

    • 3 个回答
  • Marko Smith

    如何确定bash变量是否为空?

    • 15 个回答
  • Martin Hope
    Tom Feiner 如何按大小对 du -h 输出进行排序 2009-02-26 05:42:42 +0800 CST
  • Martin Hope
    Noah Goodrich 什么是 Pem 文件,它与其他 OpenSSL 生成的密钥文件格式有何不同? 2009-05-19 18:24:42 +0800 CST
  • Martin Hope
    Brent 如何确定bash变量是否为空? 2009-05-13 09:54:48 +0800 CST
  • Martin Hope
    cletus 您如何找到在 Windows 中打开文件的进程? 2009-05-01 16:47:16 +0800 CST

热门标签

linux nginx windows networking ubuntu domain-name-system amazon-web-services active-directory apache-2.4 ssh

Explore

  • 主页
  • 问题
    • 最新
    • 热门
  • 标签
  • 帮助

Footer

AskOverflow.Dev

关于我们

  • 关于我们
  • 联系我们

Legal Stuff

  • Privacy Policy

Language

  • Pt
  • Server
  • Unix

© 2023 AskOverflow.DEV All Rights Reserve