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: action at the end of the split
Date Thu, 23 Jul 2015 17:24:41 GMT
You can do that after the splitter

<from>
  <split>
    ... inside splitter
  </split>
 .. split done
  <to email> send email here

In Java DSL you can use .end() to end the split block.

On Thu, Jul 23, 2015 at 7:21 PM, Wilson MacGyver <wmacgyver@gmail.com> wrote:
> Hi,
>
> I'm processing a large file. so I use .split and .streaming to process it a
> record at a time.
>
> I would like to send an email alert upon completion of processing the file.
>
> but I can't figure out where to do that.
>
> I know I can check to see if it's the last exchange using property
> "CamelSplitComplete", but it's set to true on the last exchange. So I still
> need to let it finish.
>
> Is there a good way to this?
>
> Thanks,
> Mac
>
> --
> Omnem crede diem tibi diluxisse supremum.



-- 
Claus Ibsen
-----------------
http://davsclaus.com @davsclaus
Camel in Action 2nd edition: http://www.manning.com/ibsen2

Mime
View raw message