Hi ,

You don't use the <convertyBodyTo> rightly.
Please change the route like this:
<convertBodyTo type="com.mycompany.product.service.jpa.Ticket"/>


--  
Willem Jiang

Red Hat, Inc.
FuseSource is now part of Red Hat
Web: http://www.fusesource.com | http://www.redhat.com
Blog: http://willemjiang.blogspot.com (http://willemjiang.blogspot.com/) 
(English)
          http://jnn.iteye.com (http://jnn.javaeye.com/) (Chinese)
Twitter: willemjiang  
Weibo: 姜宁willem





On Monday, August 12, 2013 at 3:44 AM, bmadhekar wrote:

> here is my code,
>  
> Ticket is openJpa annotated class created in drools knowledge session, this
> class has two one-to-many relationships defined. Do I need Xml annotations?
>  
> <camelContext id="camelContext"
> xmlns="http://camel.apache.org/schema/spring";>
> <route>
> <from uri="activemq:queue:commandsQueue" />
> <policy ref="fsDroolsPolicy">
> <unmarshal ref="xstream" />
> <to uri="drools:fsGridNode/fsKnowledgeSession" />
> <marshal ref="xstream" />
> <log message="${body}"/>
> </policy>
> </route>
>  
> <route>
> <from uri="direct://fsKnowledgeSession"/>
> <policy ref="fsDroolsPolicy">
> <convertBodyTo>Ticket.class</convertBodyTo>
> <to uri="jpa:com.mycompany.product.service.jpa.Ticket"/>
>  
> <log message="${body}"/>
> </policy>
> </route>
> </camelContext>
>  
>  
>  
> --
> View this message in context: 
> http://camel.465427.n5.nabble.com/Newbie-Pls-help-ETL-Example-Modification-Doesn-t-work-tp2852839p5737088.html
> Sent from the Camel - Users mailing list archive at Nabble.com 
> (http://Nabble.com).



Reply via email to