You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by objectorange <br...@briantaylor.us> on 2013/02/06 17:42:18 UTC

Re: Camel JPA - Parameterized Queries?

How did you get the context reference?



--
View this message in context: http://camel.465427.n5.nabble.com/Camel-JPA-Parameterized-Queries-tp5724046p5727043.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Camel JPA - Parameterized Queries?

Posted by chatura <sa...@gmail.com>.
That's great, But unfortunately I missed the exact option in the
documentation and ending up as same implementation as you mention.  

Thanks
Chatura



--
View this message in context: http://camel.465427.n5.nabble.com/Camel-JPA-Parameterized-Queries-tp5724046p5741930.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Camel JPA - Parameterized Queries?

Posted by Babak Vahdat <ba...@swissonline.ch>.
Hi

Since Camel 2.12 there's a 'consumer.parameters' option for this purpose:

http://camel.apache.org/jpa#JPA-Options

I polished it's description a bit to make it clear how to use it. Takes a
while to be updated on the site.

Babak


chatura wrote
> This may be little outdated. But I also had that issue with jpa named
> query dynamic parameters and resolve by extending JpaConsumer with
> override configureParameters method. I really not sure that is the best
> way to go appreciate any comment from camel experts. 
> 
> 
> Thanks
> Chatura





--
View this message in context: http://camel.465427.n5.nabble.com/Camel-JPA-Parameterized-Queries-tp5724046p5741928.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Camel JPA - Parameterized Queries?

Posted by chatura <sa...@gmail.com>.
This may be little outdated. But I also had that issue with jpa named query
dynamic parameters and resolve by extending JpaConsumer with override
configureParameters method. I really not sure that is the best way to go
appreciate any comment from camel experts. 


Thanks
Chatura



--
View this message in context: http://camel.465427.n5.nabble.com/Camel-JPA-Parameterized-Queries-tp5724046p5741925.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Camel JPA - Parameterized Queries?

Posted by Babak Vahdat <ba...@swissonline.ch>.
Hi

In case of a Bean method that comes out-of-the-box through the Camel
Parameter binding:

  http://camel.apache.org/bean-binding.html#BeanBinding-Parameterbinding

And in case of a Camel Processor:

 theExchangeParameterOfTheProcessMethod.getContext();

Babak




--
View this message in context: http://camel.465427.n5.nabble.com/Camel-JPA-Parameterized-Queries-tp5724046p5727045.html
Sent from the Camel - Users mailing list archive at Nabble.com.