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:09 AM, phil swenson <[email protected]>wrote:
> 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",
> "storeEventXmlToTCCache");
>
> could someone point me to a simple example? I am sure it's easy, I'm
> just new to camel.
>
>
> thanks
> phil
>