How to pass values dynamically to jpa query in camel route ?

Solution Verified - Updated -

Issue

  • Unable to pass parameters dyanamically in camel JPA component
<inOnly uri="jpa://xx.yy.zz.Classname?persistenceUnit=abc&amp;consumeDelete=false&amp;consumer.query=select o from xx.yy.zz.Classname o where o.field1 = 'REQ' and o.field2 = ${body} "/>

Environment

  • Red Hat JBoss Fuse
    • 6.1.0

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content