Re: How to set message expiry in activemq

2011-06-07 Thread agujral
thanks everyone for your replies -- View this message in context: http://activemq.2283324.n4.nabble.com/How-to-set-message-expiry-in-activemq-tp3580498p3581356.html Sent from the ActiveMQ - User mailing list archive at Nabble.com.

Re: How to set message expiry in activemq

2011-06-07 Thread Martin C.
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 wrote: > Hi All, >        We are using active mq as

Re: How to set message expiry in activemq

2011-06-07 Thread Marcelo Jabali
Hi Anurag, You can set Time to Live for each message the producer sends to ActiveMQ. That's set on the send method of the ActiveMQMessageProducer class. Take a look here [1]. You can also check the JMS specification since TTL (JMSExpiration) is part of the standard JMS. [1] http://activemq.ap