Hi,
if I try to get an object from my jpa-resource and pass it to jms, the
jms-message body is always null! I use the following route dfinition:
from("jpa:com.itellium.eai.camelexample.entity.Customer?consumer.namedQuery=findAll&delay=10000&consumeLockEntity=true&consumeDelete=false")
.routeId(JPAInRouteBuilder.ROUTE_ID)
.transacted()
.bean(messageLogBean)
.to("jms:jpaIn?exchangePattern=InOnly&transacted=true&jmsMessageType=Object")
.end();
If I look at the log, I can see that I get an object from the database (at
the point of the bean-call):
2009-11-03 14:30:19,952 [1: JpaComponent] INFO MessageLogBean
- jpaIn,cadd73c8-edc5-4764-9ea2-bbeeb76bf9e8,Exchange[Message:
com.itellium.eai.camelexample.entity.custo...@509bfc(oid=1,name=Name1,oversion=1)],body[com.itellium.eai.camelexample.entity.custo...@509bfc(oid=1,name=Name1,oversion=1)]
I had tryed to use a route definition without any ben-call ... same effect
...
Im not sure ... but this may be a problem in the latest snapshot?
... DRy
--
View this message in context:
http://old.nabble.com/JPA%3A-Could-not-pass-Object-from-jpa-to-jms-tp26160124p26160124.html
Sent from the Camel - Users mailing list archive at Nabble.com.