Check out the camel bean binding docs [1].
With the Simple language you can do something like this:
from("mms:topic:edaXmlTopic").bean(EventStoreService.class,
"storeEventXmlToTCCache(${body}, ${header.someHeader})")
1. http://camel.apache.org/bean-binding.html
On Tue, Jan 24, 2012 at 11
I would like to set up a camel route that sends both the JMS header
and the body to a java class. I see how to get this information
independently, but not together…..
here is my current working route, the body goes through fine:
from("jms:topic:edaXmlTopic").beanRef("eventStoreService",
"storeEve