【问题标题】:activeMQ timeBeforePurgeTempDestinations milliseconds or seconds?activeMQ timeBeforePurgeTempDestinations 毫秒还是秒?
【发布时间】:2016-10-09 14:00:51
【问题描述】:

我认为设置 cacheTempDestinations="true" 和 timeBeforePurgeTempDestinations="?" 应该解决我遇到的一些问题

我读到 timeBeforePurgeTempDestinations 的默认值为 5 秒。

如果我想将 timeBeforePurgeTempDestinations 设置为 30 秒,是毫秒还是秒?在xml配置文件中,

  <broker xmlns="http://activemq.apache.org/schema/core"
              brokerName="localhost"
              dataDirectory="${activemq.data}"
              deleteAllMessagesOnStartup="true"
              cacheTempDestinations="true"
              timeBeforePurgeTempDestinations="30000">

  <broker xmlns="http://activemq.apache.org/schema/core"
              brokerName="localhost"
              dataDirectory="${activemq.data}"
              deleteAllMessagesOnStartup="true"
              cacheTempDestinations="true"
              timeBeforePurgeTempDestinations="30">

谢谢

我想我也可以了解更多关于

的信息

jms.watchTopicAdvisories=false 和 ActiveMQ.Advisory.TempQueue

我认为,在 timeBeforePurgeTempDestinations 过期之前,无法告知客户端临时队列已销毁。

如果在我的情况下这是真的,这应该没问题。我不需要使用

  tcp://"+brokerIp+":61616?jms.watchTopicAdvisories=false

在我的连接ULR中,如果上面的连接URL确实是正确的

谢谢

但是我有这个连接的网址

<transportConnector name="openwire" uri="tcp://0.0.0.0:61616?maximumConnections=80000&amp;wireFormat.maxFrameSize=104857600&amp;transport.useInactivityMonitor=false&amp;wireFormat.maxInactivityDuration=0&amp;jms.prefetchPolicy.all=0"/>

我在哪里

transport.useInactivityMonitor=false

所以我不确定临时队列的效果如何

【问题讨论】:

    标签: xml jms activemq mq


    【解决方案1】:

    【讨论】:

    • 谢谢,如果您能发布一个链接,说明您是如何找到此信息的,那就太好了。也是我的 xml 配置片段,正在寻找还是?我还添加了一个关于 jms.watchTopicAdvisories=false 如何与 timeBeforePurgeTempDestinations 相关的子 Q,谢谢
    • 我没有回答只是为了得到更多的关注,但在更多的 cmet 之后会接受,谢谢
    猜你喜欢
    • 2015-10-08
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2019-02-24
    • 1970-01-01
    • 1970-01-01
    • 2012-06-08
    相关资源
    最近更新 更多