How can i define multiple JPA consumers in CAMEL? I have managed to create
another camel context which is duplicate of below camelContext segment
except id is named as camel2. This duplicate segment worked but i like to
have a way where I can define number of consumers without having duplicate
the camelContext code. I looked at Seda and VM but didn't know how to define
"from". Can you please advise how I can add multiple consumers for JPA in
Camel? Thanks in advance.
<camelContext id="camel" xmlns="http://camel.apache.org/schema/spring">
<package>com.mbl</package>
<jmxAgent id="agent" createConnector="true" />
<route>
<from
uri="jpa:com.MyEntity?consumer.namedQuery=pollRecords&consumeDelete=false&delay=3000"/>
<convertBodyTo type="com.MyEntity"/>
<to uri="bean:transformerBean?method=transformOrder"/>
</route>
</camelContext>
<bean id = "transformerBean" class ="com.transformation.OrderTransformation"
/>
Kind regards,
-Vid-
--
View this message in context:
http://old.nabble.com/Multiple-JPA-Consumers-tp27740630p27740630.html
Sent from the Camel - Users mailing list archive at Nabble.com.