You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by rsvalerio <rs...@gmail.com> on 2011/04/24 22:41:08 UTC

Jpa component problem?

I`m trying to make a simple example using camel jpa component.
This code:
from("jpa://org.camel.MyEntity?consumer.namedQuery=myQuery")
  .process(new Processor() {
    @Override
    public void process(Exchange exchange) throws Exception {
      System.out.println(exchange.getIn().getBody());
    }
  }
);
Don`t send message to process method, it always goes to: begin -> commit of
class DefaultPollingConsumerPollStrategy, in infinite loop.

I`m using Apache Camel 2.7.1 on macos

What`s i doing wrong?

Thanks in advance.

--
View this message in context: http://camel.465427.n5.nabble.com/Jpa-component-problem-tp4337021p4337021.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Jpa component problem?

Posted by rsvalerio <rs...@gmail.com>.
Just ignore this.

It`s just the consumeDelete=false parameter.

Sorry 

--
View this message in context: http://camel.465427.n5.nabble.com/Jpa-component-problem-tp4337021p4337317.html
Sent from the Camel - Users mailing list archive at Nabble.com.