You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@activemq.apache.org by Nereus Chen <ne...@gmail.com> on 2011/03/28 12:59:53 UTC
Re: Message timeout delete
HI.
The ActiveMQ cannot auto delete the message after some seconds.
But you can use the produer's timeToLive properties.
such as:
MessageProducer producer = ;// to new a producer
producer.setTimeToLive(timeToLive)//timeToLive = 20*1000; 20 seconds
Try to do it.
2011/3/28 queo1987 [via ActiveMQ] <
ml-node+3411234-1175913085-224997@n4.nabble.com>
> Hi all,
> How to config ActiveMQ, auto delete message when timeout.
> Ex: A send 'message 1' to B through out 'ActivemQ'.
> after 20 seconds if B don't revive message, 'message 1' will be deleted
> automatic by activemq server.
>
> Please show me, config that.
> Thank and regards.
>
>
> ------------------------------
> If you reply to this email, your message will be added to the discussion
> below:
>
> http://activemq.2283324.n4.nabble.com/Message-timeout-delete-tp3411234p3411234.html
> To start a new topic under ActiveMQ - User, email
> ml-node+2341805-711425220-224997@n4.nabble.com
> To unsubscribe from ActiveMQ - User, click here<http://activemq.2283324.n4.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=2341805&code=bmVyZXVzLmNoZW5AZ21haWwuY29tfDIzNDE4MDV8LTkzMTQ3MTE3Nw==>.
>
>
--
View this message in context: http://activemq.2283324.n4.nabble.com/Message-timeout-delete-tp3411234p3411315.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.