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 of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.