camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Claus Ibsen <claus.ib...@gmail.com>
Subject Re: Question regarding usage of pollEnrich with queue and quartz or timer
Date Tue, 25 Aug 2009 08:49:03 GMT
And use the google search box on the Camel front page.

Enter "pollEnrich" and find the camel document

Eg read this:
http://camel.apache.org/content-enricher.html


On Tue, Aug 25, 2009 at 10:47 AM, Claus Ibsen<claus.ibsen@gmail.com> wrote:
> On Tue, Aug 25, 2009 at 9:44 AM, Charles Moulliard<cmoulliard@gmail.com> wrote:
>> Hi,
>>
>> I have the following question concerning the usage of pollEnrich processor
>> with queue and quartz endpoints.
>>
>> Is the following route correctly configured to pickup messages from a queue
>> every x minutes
>>
>> from(quartz:scheduler)
>> .pollEnrich(uri=Activemq:queue:MessagesToBeProcessed)
>> .to(bean:component:who will process the messages)
>>
>
> Try asking the computer it will tell. Yeah its should be something like that.
> You can provide an AggregationStrategy if you want to "merge" the polled result.
>
>
>> Additional question : Is it possible in Spring DSL to provide the ref of the
>> endpoint to the pollEnrich processor instead of an uri ?
>>
>
> No it currently only support an uri. At least in the Java DSL.
> Ref is to be added in the future.
>
> I cannot remember if the "ref" is in the Spring DSL. You can check
> yourself to see if there is an ref attribute to set on the
> <pollEnrich> XML tag.
>
>
>> 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
>



-- 
Claus Ibsen
Apache Camel Committer

Open Source Integration: http://fusesource.com
Blog: http://davsclaus.blogspot.com/
Twitter: http://twitter.com/davsclaus

Mime
View raw message