Re: Add header for each message

2010-08-30 Thread senthil.arumugam
Hi Willem, I am using Camel 2.4.0 and let me try the same with 2.5-SNAPSHOT as you mentioned and update the same once I am done. Thanks, - SK -- View this message in context: http://camel.465427.n5.nabble.com/Add-header-for-each-message-tp2651224p2797607.html Sent from the Camel - Users mailin

Re: Add header for each message

2010-08-30 Thread senthil.arumugam
Hi Willem, Our use case is, we need to save or update the entity. For eg, We have a message of instance Foo and we need to decide whether the instance to be saved or updated etc. This behavior is common across all the messages. So we are wrapping Foo (actual message entity) with SampleMessage

Re: Problem with cron expression configuration in camel-context with spring

2010-08-30 Thread senthil.arumugam
Hi Hadrian, Thanks for your quick response. When I use like how you suggested and I got it working fine, Thank you. But I would like to know the significance in using '//' after quartz. If I don't use it, I am getting the following exception. It occurs when I use '?' in the cron expression. Ca

Re: Add header for each message

2010-08-30 Thread senthil.arumugam
Hi Willem, I thank you for your reply. That was a way we were thinking, using which we can differentiate various messages and route them as needed. Now we have achieved it by wrapping the actual message with another object of type Message which use generics to return the entity and holds a value

Add header for each message

2010-08-24 Thread senthil.arumugam
Hi, I have created a producer interface to send messages to specified endpoint. Can I add a header to each message I send from my producer ? I would like to get an example for the same. Is it possible to add an annotation in my producer like the below mentioned ? Will camel inject the propert

Problem with bean overloaded method invocation in route

2010-08-21 Thread senthil.arumugam
Hi, I am trying to invoke a method from my route configured with camel-spring to persist the consumed message to DB. my route is like, The bean class Foo has two methods, which are overloaded. e.g. public void save(Collection foos) {} public void save(Foo foo) {} When the consume

Problem with consuming different types of message from same endpoint

2010-08-21 Thread senthil.arumugam
Hi, I am trying to consume message from an endpoint defined in my route. The queue to which the consumer is listening, has two different nature of messages. For eg, I have a queue, say "queue:one" which has messages of type Foo and Bar. When the consumer starts listening and on message, I am ge