Re: JMS Message Expiration period

2014-03-20 Thread Jose
Thank you very much Willem.

I'll try that.

Jose



--
View this message in context: 
http://camel.465427.n5.nabble.com/JMS-Message-Expiration-period-tp5749032p5749153.html
Sent from the Camel - Users mailing list archive at Nabble.com.


JMS Message Expiration period

2014-03-18 Thread Jose
Hi,

I am sending messages to a queue using Camel jms component. 

I want to specify an expiration period so that if a message is not consumed
within that period then the message should be sent to an error queue.

I have been investigating on Internet but it is still not very clear to me.

Do I need to use JMSExpiration header or timeToLive? Do I need to
specify them in the sender or in the  consumer? I have read
http://camel.apache.org/jms serveral times but it doesn't say much about it.

Could you please advice?

Thanks a lot.

Jose




--
View this message in context: 
http://camel.465427.n5.nabble.com/JMS-Message-Expiration-period-tp5749032.html
Sent from the Camel - Users mailing list archive at Nabble.com.


Re: JMS Message Expiration period

2014-03-18 Thread Willem.Jiang
timeToLive is the uri option, you can set it on the jms endpoint which you
want to route the message from camel route to jms broker.

Willem



--
View this message in context: 
http://camel.465427.n5.nabble.com/JMS-Message-Expiration-period-tp5749032p5749075.html
Sent from the Camel - Users mailing list archive at Nabble.com.