There is an addOnCompletion on the exchange you can use. Then your onCompletion can implement that interface, or extend SynchronizationAdapter
On Tue, Sep 6, 2016 at 9:52 PM, Quinn Stevenson <qu...@pronoia-solutions.com> wrote: > Thank you for the prompt reply :-) > > This sounds like exactly what I need, but I’m a little unclear about how to > implement it. I tried creating a UnitOfWork, adding a Synchronization, and > then setting the UnitOfWork on the exchange when I create it, but my > Synchronization isn’t getting called. > > is there another component somewhere that does something similar that I > could look at? > > >> On Sep 6, 2016, at 1:25 PM, Claus Ibsen <claus.ib...@gmail.com> wrote: >> >> If you talk about UoW completions with Synchronization: >> org.apache.camel.spi.Synchronization >> >> Then you can implement Ordered, and then set the value to be HIGHEST >> so this one is run before the others. >> >> >> On Tue, Sep 6, 2016 at 9:20 PM, Quinn Stevenson >> <qu...@pronoia-solutions.com> wrote: >>> I would like to enhance the camel-mllp component to set a message header >>> containing the MLLP Acknowledgement when the component is automatically >>> generating the acknowledgment. This code would need to execute after the >>> last element in the main route, but before any onCompletion elements are >>> invoked, but I can’t figure out the right way to make this happen. >>> >>> Can someone point me in the right direction? >>> >>> >> >> >> >> -- >> Claus Ibsen >> ----------------- >> http://davsclaus.com @davsclaus >> Camel in Action 2: https://www.manning.com/ibsen2 > -- Claus Ibsen ----------------- http://davsclaus.com @davsclaus Camel in Action 2: https://www.manning.com/ibsen2