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: Polling Consumer invoking multiple requests.
Date Wed, 28 Mar 2012 06:21:15 GMT
Did you already had a look at [1]?

IMO this is the way you should go. I'm working on an example for my
colleges, which have similar needs:
- The route should started/triggered by an external scheduler (Tivoli in
our case). We will use camel-netty, camel-mina or camel-http4 for this.
- The route should consume all files in an directory or all message from
one queue (different use cases).
- We have to return a return value to the scheduler which indicates whether
everything went good or not.

Will share my solution here later this week...

[1] http://camel.apache.org/routepolicy.html

Best,
Christian

On Wed, Mar 28, 2012 at 2:10 AM, segev <soa.avi@gmail.com> wrote:

> We have a requirement to implement a polling consumer that periodically
> checks for messages (via Web Service or RMI requests).
> In this case the polling consumer expects to invoke multiple requests until
> all messages have been read without waiting for the next polling (there is
> a
> ‘No More Messages’ flag in the result of each request).
> The messages further processing is expected to be done by multiple threads.
> I am new to Camel (we looked at it a long time ago but never had a chance
> to
> use it).
> I couldn’t find an obvious way to achieve the above, a loop processor could
> help but we don’t process the same message multiple times and in this case
> it is not a ‘for’ loop with a counter.
> I also considered ‘splitter’ but in this case we will have to read all
> available messages first before continue processing and we prefer to send
> each message immediately after getting it to a pool of multi-threaded
> executors.
> We will most likely define the endpoints using Spring beans and
> implementation will be using Java DSL.
> Any suggestions on how to achieve the above will be great.
>
>
> --
> View this message in context:
> http://camel.465427.n5.nabble.com/Polling-Consumer-invoking-multiple-requests-tp5599204p5599204.html
> Sent from the Camel - Users mailing list archive at Nabble.com.
>

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