Are you sure there is data in the table? If there is no rows then
there is now data to route.
And also are you sure if there is data, that the logging level at
DEBUG is being logged in your log?

On Mon, May 27, 2013 at 5:21 PM, lmanchanda75 <lmanchand...@gmail.com> wrote:
> I figured this out, the null was coming because of me not defining any
> attribute as @Id in PurchaseOrder entity.
>
> But now when I run this, it goes in a loop of the following, without moving
> to next point it route (log). See if anybody can help me on this.
>
>
> 20:43:50,204 | DEBUG | pa.PurchaseOrder | JpaTransactionManager            |
> 136 - org.springframework.transaction - 3.1.3.RELEASE | Creating new
> transaction with name [null]: PROPAGATION_REQUIRED,ISOLATION_DEFAULT^M
> 20:43:50,205 | DEBUG | pa.PurchaseOrder | JpaTransactionManager            |
> 136 - org.springframework.transaction - 3.1.3.RELEASE | Opened new
> EntityManager
> [org.apache.aries.jpa.container.impl.EntityManagerWrapper@1e93738] for JPA
> transaction^M
> 20:43:50,213 | DEBUG | pa.PurchaseOrder | JpaConsumer                      |
> 244 - org.apache.camel.camel-jpa - 2.10.0.redhat-60024 | Flushing
> EntityManager^M
> 20:43:50,213 | DEBUG | pa.PurchaseOrder | JpaTransactionManager            |
> 136 - org.springframework.transaction - 3.1.3.RELEASE | Initiating
> transaction commit^M
> 20:43:50,213 | DEBUG | pa.PurchaseOrder | JpaTransactionManager            |
> 136 - org.springframework.transaction - 3.1.3.RELEASE | Committing JPA
> transaction on EntityManager
> [org.apache.aries.jpa.container.impl.EntityManagerWrapper@1e93738]^M
> 20:43:50,213 | DEBUG | pa.PurchaseOrder | JpaTransactionManager            |
> 136 - org.springframework.transaction - 3.1.3.RELEASE | Closing JPA
> EntityManager
> [org.apache.aries.jpa.container.impl.EntityManagerWrapper@1e93738] after
> transaction^M
> 20:43:50,213 | DEBUG | pa.PurchaseOrder | EntityManagerFactoryUtils        |
> 242 - org.springframework.orm - 3.1.3.RELEASE | Closing JPA EntityManager^M
> 20:43:50,427 | DEBUG | heckpoint Worker | MessageDatabase                  |
> 114 - org.apache.activemq.activemq-osgi - 5.8.0.redhat-60024 | Checkpoint
> started.^M
>
>
>
>
> --
> View this message in context: 
> http://camel.465427.n5.nabble.com/camel-jpa-issue-tp5733238p5733268.html
> Sent from the Camel - Users mailing list archive at Nabble.com.



-- 
Claus Ibsen
-----------------
www.camelone.org: The open source integration conference.

Red Hat, Inc.
FuseSource is now part of Red Hat
Email: cib...@redhat.com
Web: http://fusesource.com
Twitter: davsclaus
Blog: http://davsclaus.com
Author of Camel in Action: http://www.manning.com/ibsen

Reply via email to