On Wed, Sep 16, 2009 at 10:38 AM, Charles Moulliard
<[email protected]> wrote:
> Hi,
>
> I will implement a bean component who will play the role of a
> pollingConsumer. This bean will be called every x minutes from a quartz
> endpoint. This bean component will read all messages posted in a queue until
> the last one and create a list of objects who will be used next by marshal
> function defined in the camel route.
>
> Question : Can the method called in my "polling consumer" bean return a list
> of objects or should it be defined as void ?
>
You can return whatever you like from the bean, and its output will be
used as payload for the camel message.
from(quartz).beanRef("myBeanThatIsAPollingConsumer").marshal()
> Regards,
>
> Charles Moulliard
> Senior Enterprise Architect
> Apache Camel Committer
>
> *****************************
> blog : http://cmoulliard.blogspot.com
>
--
Claus Ibsen
Apache Camel Committer
Open Source Integration: http://fusesource.com
Blog: http://davsclaus.blogspot.com/
Twitter: http://twitter.com/davsclaus