Hi
<plugins <timeStampingBrokerPlugin ttlCeiling="1000",zeroExpirationOverride="1000"&gt;</timeStampingBrokerPlugin>; </plugins>I'm sorry about this expiration time setting??Due to my writing problem, the setting expiration time is very short (1 second). But in the actual verification, I used 10 seconds?? The reason for this problem is that the time of the system where the broker of ActiveMQ is located is inconsistent with that of the client ------------------ ???????? ------------------ ??????: "users" <tb...@alumni.duke.edu>; ????????: 2021??6??2??(??????) ????7:57 ??????: "ActiveMQ Users"<users@activemq.apache.org>; ????: Re: Set message expiration time use activemq 5.15.9 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&nbsp; &nbsp; {............} > 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 {.............} > ???????? ?? ???????????? ???????????????????????? ?????????????????????????????????????????????????????????????????????????????????????? > > > > > > ???????? ???? ???? ???????????? > <plugins > <timeStampingBrokerPlugin ttlCeiling="1000",zeroExpirationOverride="1000"&gt;</timeStampingBrokerPlugin>; > </plugins&gt; > ------------------&nbsp;????????&nbsp;------------------ > ??????: > "users" > < > j...@nanthrax.net&gt;; > ????????:&nbsp;2021??6??1??(??????) ????8:00 > ??????:&nbsp;"users"<users@activemq.apache.org&gt;; > > ????:&nbsp;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 > > &gt; Le 1 juin 2021 ?? 13:37, ??????o.-- <1169114...@qq.com&gt; a ??crit : > &gt; > &gt; but when&amp;nbsp; the type of message is map, the result is the same > &gt; > &gt; > &gt; > &gt; > &gt; ------------------&amp;nbsp;????????&amp;nbsp;------------------ > &gt; > ??????:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; > "users"&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; > <j...@nanthrax.net&amp;gt;; > &gt; ????????:&amp;nbsp;2021??6??1??(??????) ????4:42 > &gt; ??????:&amp;nbsp;"users"<users@activemq.apache.org&amp;gt;; > &gt; > &gt; ????:&amp;nbsp;Re: Set message expiration time use activemq 5.15.9 > &gt; > &gt; > &gt; > &gt; Hi, > &gt; > &gt; It depends the type of message, is it text message ? > &gt; > &gt; By the way, the expiration time is a property of the message. > &gt; > &gt; Regards > &gt; JB > &gt; > &gt; &amp;gt; Le 1 juin 2021 ?? 08:45, ??????o.-- <1169114...@qq.com&amp;gt; > a ??crit : > &gt; &amp;gt; > &gt; &amp;gt; hello: > &gt; &amp;gt; &amp;amp;nbsp;i have a question in using activemq 5.15.9. > when use timeStamplingBrokerPlugin , > &gt; &amp;gt; &amp;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; &amp;gt; > &gt; &amp;gt; > &gt; &amp;gt; &amp;amp;nbsp; &amp;amp;nbsp; &amp;amp;nbsp; &amp;amp;nbsp; > &amp;amp;nbsp; &amp;amp;nbsp; &amp;amp;nbsp; &amp;amp;nbsp; &amp;amp;nbsp; > &amp;amp;nbsp; &amp;amp;nbsp; &amp;amp;nbsp; &amp;amp;nbsp; &amp;amp;nbsp; > &amp;amp;nbsp; &amp;amp;nbsp; &amp;amp;nbsp; &amp;amp;nbsp; &amp;amp;nbsp; > &amp;amp;nbsp; &amp;amp;nbsp; &amp;amp;nbsp; &amp;amp;nbsp; &amp;amp;nbsp; > &amp;amp;nbsp; &amp;amp;nbsp; &amp;amp;nbsp; &amp;amp;nbsp; &amp;amp;nbsp; > &amp;amp;nbsp; &amp;amp;nbsp; &amp;amp;nbsp; &amp;amp;nbsp; &amp;amp;nbsp; > &amp;amp;nbsp; &amp;amp;nbsp; &amp;amp;nbsp; &amp;amp;nbsp; &amp;amp;nbsp; > &amp;amp;nbsp; &amp;amp;nbsp; &amp;amp;nbsp; &amp;amp;nbsp; &amp;amp;nbsp; > &amp;amp;nbsp; &amp;amp;nbsp; &amp;amp;nbsp; &amp;amp;nbsp; &amp;amp;nbsp; > &amp;amp;nbsp; &amp;amp;nbsp; &amp;amp;nbsp; &amp;amp;nbsp; &amp;amp;nbsp; > &amp;amp;nbsp; &amp;amp;nbsp; &amp;amp;nbsp; &amp;amp;nbsp; &amp;amp;nbsp; > &amp;amp;nbsp; &amp;amp;nbsp; &amp;amp;nbsp; &amp;amp;nbsp; &amp;amp;nbsp; > &amp;amp;nbsp; &amp;amp;nbsp; &amp;amp;nbsp; &amp;amp;nbsp; &amp;amp;nbsp; > &amp;amp;nbsp; &amp;amp;nbsp; &amp;amp;nbsp; &amp;amp;nbsp; &amp;amp;nbsp; > &amp;amp;nbsp; &amp;amp;nbsp; thanks