I've my route like this,
<route id="mb-database-poller">
<from
uri="mybatis-comm:fetchMessagesReadyForDelivery?statementType=SelectList&delay=1000&consumer.useIterator=false&maxMessagesPerPoll=100"
/>
<bean ref="inboundTransportDocumentConverter"
method="updateStatus" />
<split>
<simple>${in.body}</simple>
<bean ref="inboundTransportDocumentConverter"
method="constructMessageFromDatabase" />
<to uri="direct:inboundEndpoint" />
</split>
</route>
As you can see I'm using the mybatis component as a poller.
NOw, how can I pass in a variable to 'fetchMessagesReadyForDelivery' method
? This will help me pass in different value to the method without having to
re-write similar DAO methods. I've just one variable(parameter) that this
method expects
Thanks,
Jeoffrey
--
View this message in context:
http://camel.465427.n5.nabble.com/Pass-variable-to-mybatis-component-tp5137772p5137772.html
Sent from the Camel - Users mailing list archive at Nabble.com.