Hi,

have a look at 
http://download.oracle.com/javaee/1.4/api/javax/jms/MessageProducer.html#send(javax.jms.Message,
int, int, long) on how to send messages with a time-to-live set.

Best regards,
Martin

On Tue, Jun 7, 2011 at 9:00 PM, agujral <anurag_guj...@yahoo.com> wrote:
> Hi All,
>        We are using active mq as a queueing layer in our system,from which
> consumers read messages.
> The consumers processes message by sending  a message to the remote severs
> ,sometimes the remote servers are down causing a big backlog of messages .Is
> there  a way in activemq so that we can expire the messages.
>
> Thanks
> Anurag
>
>
>
> --
> View this message in context: 
> http://activemq.2283324.n4.nabble.com/How-to-set-message-expiry-in-activemq-tp3580498p3580498.html
> Sent from the ActiveMQ - User mailing list archive at Nabble.com.
>

Reply via email to