activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Nereus Chen <nereus.c...@gmail.com>
Subject Re: Message timeout delete
Date Mon, 28 Mar 2011 10:59:53 GMT
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.
Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message