You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by scottdawson <sc...@gmail.com> on 2013/11/11 16:34:41 UTC
Camel-JPA for single select statements
I would like to use the Camel JPA component to perform single select
statements, in other words, I would like to use the component as a consumer
without the default polling behavior. I want to receive an invocation over
HTTP (via the Jetty component perhaps) which will cause one select statement
to be performed with the results going back to the HTTP consumer.
I have not been able to figure out how to turn off the polling. I can cause
my select statement to happen but it happens continuously. Is there a way to
turn off polling or does this go against the grain of what the JPA component
is intended for?
Thanks,
Scott Dawson
--
View this message in context: http://camel.465427.n5.nabble.com/Camel-JPA-for-single-select-statements-tp5743045.html
Sent from the Camel - Users mailing list archive at Nabble.com.
Re: Camel-JPA for single select statements
Posted by scottdawson <sc...@gmail.com>.
Christian: Yes, we have experimented with camel-jdbc and camel-sql, however,
we have a Hibernate layer that we would like to leverage which is why we are
trying to use camel-jpa.
Claus: It sounds like you are suggesting that maybe camel-jpa is not the
right tool for the job.
Thanks to both of you for your responses.
Best regards,
Scott
--
View this message in context: http://camel.465427.n5.nabble.com/Camel-JPA-for-single-select-statements-tp5743045p5743055.html
Sent from the Camel - Users mailing list archive at Nabble.com.
Re: Camel-JPA for single select statements
Posted by Claus Ibsen <cl...@gmail.com>.
You can just use regular JPA API and call it from a java bean, and
have Camel call that bean.
On Mon, Nov 11, 2013 at 4:34 PM, scottdawson <sc...@gmail.com> wrote:
> I would like to use the Camel JPA component to perform single select
> statements, in other words, I would like to use the component as a consumer
> without the default polling behavior. I want to receive an invocation over
> HTTP (via the Jetty component perhaps) which will cause one select statement
> to be performed with the results going back to the HTTP consumer.
>
> I have not been able to figure out how to turn off the polling. I can cause
> my select statement to happen but it happens continuously. Is there a way to
> turn off polling or does this go against the grain of what the JPA component
> is intended for?
>
> Thanks,
> Scott Dawson
>
>
>
> --
> View this message in context: http://camel.465427.n5.nabble.com/Camel-JPA-for-single-select-statements-tp5743045.html
> Sent from the Camel - Users mailing list archive at Nabble.com.
--
Claus Ibsen
-----------------
Red Hat, Inc.
Email: cibsen@redhat.com
Twitter: davsclaus
Blog: http://davsclaus.com
Author of Camel in Action: http://www.manning.com/ibsen
Re: Camel-JPA for single select statements
Posted by Christian Posta <ch...@gmail.com>.
Is camel-ibatis or camel-sql component an option?
On Mon, Nov 11, 2013 at 8:34 AM, scottdawson <sc...@gmail.com> wrote:
> I would like to use the Camel JPA component to perform single select
> statements, in other words, I would like to use the component as a consumer
> without the default polling behavior. I want to receive an invocation over
> HTTP (via the Jetty component perhaps) which will cause one select statement
> to be performed with the results going back to the HTTP consumer.
>
> I have not been able to figure out how to turn off the polling. I can cause
> my select statement to happen but it happens continuously. Is there a way to
> turn off polling or does this go against the grain of what the JPA component
> is intended for?
>
> Thanks,
> Scott Dawson
>
>
>
> --
> View this message in context: http://camel.465427.n5.nabble.com/Camel-JPA-for-single-select-statements-tp5743045.html
> Sent from the Camel - Users mailing list archive at Nabble.com.
--
Christian Posta
http://www.christianposta.com/blog
twitter: @christianposta