It looks like all messages in your broker expire after max 1 second, since the timeStampingBrokerPlugin will set the TTL to 1 second if it is absent or >1s.
Your original question says that you're accessing the messages before they reach their expiration times, which means within 1s of them being published. That's very quick turnaround for a human being using a web UI to perform two successive actions (list messages, then access individual message). Can you tell us more about your procedure for doing that and how you're certain that the message isn't yet expired by the time you try to access it? Thanks, Tim On Tue, Jun 1, 2021, 7:50 PM ヤ艾枫o.-- <1169114...@qq.com> wrote: > The log is follow > INFO | Adding destination:Queue:test > |org.apache.activemq.broker.util.LoggingBrokerPlugin | ActiveMQ > VMTransport: vm://localhost#3-4 > INFO | Adding Consumer: ConsumerInfo {commandId = 14, responseRequired = > true, consumerId= ID:zk1-34144-192254545-4:1:1:6,destination > =queue://test,prefetchSize=500,maximumPendingMessageLimit=0,browser= > true,dispathchAsync=true,selector=null,cliient= > ID:zk1-34144-45465-3.1,subscriptionName > =null,noLocal=false,exclusive=false,retroactive=false,prioroty=0,brokerPAth=null,optimizedAcknowledge=false,noRangeAcks=false,additionalPredicate=null,networkComsumerIds=nill}| > org.apache.activemq.broker.util.LoggingBrokerPlugin | ActiveMQ VMTransport: > vm://localhost#3-4 > INFO| Adding destination:Topic:ActiveMQ.Advisory.Consumer.Queue.test > |org.apache.activemq.broker.util.LoggingBrokerPlugin | ActiveMQ > VMTransport: vm://localhost#3-4 > Info| Message has expired : ActiveMQTextMEssage {...............} > INFO | Sending to DLQ:ActiveMQTextMessage {............} > INFO | Adding destination : Topic:ActiveMQ.Advisory.Expred.Queue.test > |org.apache.activemq.broker.util.LoggingBrokerPlugin | ActiveMQ > VMTransport: vm://localhost#3-4 > INFO | preProvessDispatch: MEssageDispath {.................} > INFO | postPRocessDispatch :MessageDispatch {.............} > INFO | Removing Consumer : ConsumerInfo {.............} > INFO | Adding destination: Topic:ActiveMQ.Advisory,Consumer.Queue.test > > > > > > this is my config > <plugins> > <timeStampingBrokerPlugin > ttlCeiling="1000",zeroExpirationOverride="1000"></timeStampingBrokerPlugin> > </plugins> > ------------------ 原始邮件 ------------------ > 发件人: > "users" > < > j...@nanthrax.net>; > 发送时间: 2021年6月1日(星期二) 晚上8:00 > 收件人: "users"<users@activemq.apache.org>; > > 主题: Re: Set message expiration time use activemq 5.15.9 > > > > Hi, > > I just tried and I don’t have any issue: I can browse and view a pending > message (not yet expired). > > Do you have messages in the log ? > > Regards > JB > > > Le 1 juin 2021 à 13:37, ヤ艾枫o.-- <1169114...@qq.com> a écrit : > > > > but when&nbsp; the type of message is map, the result is the same > > > > > > > > > > ------------------&nbsp;原始邮件&nbsp;------------------ > > > 发件人: > "users" > <j...@nanthrax.net&gt;; > > 发送时间:&nbsp;2021年6月1日(星期二) 下午4:42 > > 收件人:&nbsp;"users"<users@activemq.apache.org&gt;; > > > > 主题:&nbsp;Re: Set message expiration time use activemq 5.15.9 > > > > > > > > Hi, > > > > It depends the type of message, is it text message ? > > > > By the way, the expiration time is a property of the message. > > > > Regards > > JB > > > > &gt; Le 1 juin 2021 à 08:45, ヤ艾枫o.-- <1169114...@qq.com&gt; > a écrit : > > &gt; > > &gt; hello: > > &gt; &amp;nbsp;i have a question in using activemq 5.15.9. > when use timeStamplingBrokerPlugin , > > &gt; &amp;nbsp;When the message in the queue does not reach > the expiration time, when you click the console to view the message content > in the queue, the message will be expired directly and the message content > cannot be viewed。Is this a normal phenomenon? Or is there a problem with > the configuration > > &gt; > > &gt; > > &gt; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; > &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; > &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; > &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; > &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; > &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; > &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; > &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; > &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; > &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; > &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; > &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; > &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; > &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; > &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; > &amp;nbsp; &amp;nbsp; thanks