【发布时间】: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&wireFormat.maxFrameSize=104857600&transport.useInactivityMonitor=false&wireFormat.maxInactivityDuration=0&jms.prefetchPolicy.all=0"/>
我在哪里
transport.useInactivityMonitor=false
所以我不确定临时队列的效果如何
【问题讨论】: