Re: JMSExpiration - camel route

2010-08-18 Thread Charles Moulliard
Hi Claus, I have found how to set it though a property of ActiveMq (* ActiveMQMessageProducer* ) --> timeToLive = JMSExpiration Here is the uri to be used in Camel to(uri="ac

Re: JMSExpiration - camel route

2010-08-18 Thread Claus Ibsen
Hi Yeah you can set the expiration. This code does it } else if (headerName.equals("JMSExpiration")) { jmsMessage.setJMSExpiration(ExchangeHelper.convertToType(exchange, Long.class, headerValue)); However I can't remember the JMS spec but its kinda wacky in this area. As you may have

JMSExpiration - camel route

2010-08-17 Thread Charles Moulliard
Hi, We try to define the JMS header property JMSExpiration in a camel route like this 1000 Unfortunately, messages are created in the topic but the JMSExpiration header is not set. Can we configure the route like or do we have to use a producerTemplate where we can provide the Body an