camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christian Müller <christian.muel...@gmail.com>
Subject Re: Pass variable to mybatis component
Date Wed, 11 Jan 2012 22:38:11 GMT
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 <rjeoffre@upcontractor.up.com
> 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.
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message