I'm afraid, this use case isn't supported yet.
If you use the hibernate-component in a "to()", it will do an
insert/update. This is the same for the JPA component.
You should consider to use the sql or jdbc component.

Best,

Christian Müller
-----------------

Software Integration Specialist

Apache Camel committer: https://camel.apache.org/team
V.P. Apache Camel: https://www.apache.org/foundation/
Apache Member: https://www.apache.org/foundation/members.html

https://www.linkedin.com/pub/christian-mueller/11/551/642


On Tue, Jun 18, 2013 at 4:59 PM, Jinesh M.K <mkjin...@gmail.com> wrote:

> Hi All,
>
> I completed the basic hibernate example given in
> http://camel.apache.org/hibernate-example.html
>
> Now I trying hibernate with restlet in apache camel. I want to return a
> row(s) from database, with a REST GET request. That means a simple select
> query over database. How to achive this scenario using hibernate component
> .In example given like this
>
> <route id="processOrder-route"> <from uri=
> "hibernate:org.apacheextras.camel.examples.hibernate.Order?delay=1s"/> <to
> uri="bean:orderBean?method=processOrder"/> <log message="${body}"/>
> </route>
>
> But in my case from route is from restlet.
>
> One more doubt. Is it possible to Hibernate context inside processor class
>
>
>  Thanks in advance
>
> --
> Jinesh M.K
>  Amrita Vishwa Vidyapeetham
>
>
> <mkjin...@gmail.com>
>

Reply via email to