Could this solve your problem?

from("timer:xxx?yyy")
  .bean("yourEnricher")
  .to("mybatis:statement?zzz");

or

from("quartz:xxx?yyy")
  .bean("yourEnricher")
  .to("mybatis:statement?zzz");

Best,
Christian

On Wed, Jan 11, 2012 at 8:26 PM, rifazjeoffrey <[email protected]
> wrote:

> I've my route like this,
>
> <route id="mb-database-poller">
>                        <from
>
>
> uri="mybatis-comm:fetchMessagesReadyForDelivery?statementType=SelectList&amp;delay=1000&amp;consumer.useIterator=false&amp;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.
>

Reply via email to