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
type to differentiate the operation to be done on the entity.

But anyway, I would like to hear from you that how can I make use of Enum
for type variable in the Wrapper class I use. When I try to use Enum, it
threw me an exception with message saying cannot convert String to Enum.

Thank you,
- SK
-- 
View this message in context: 
http://camel.465427.n5.nabble.com/Add-header-for-each-message-tp2651224p2797529.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to