Re: Shutdown of camel routes

2023-05-11 Thread Claus Ibsen
Hi

How do you setup the quickfix engine?
Also do you have a chance to try a newer camel release as it may
work better there.

But yeah we should make it ideally stop the engine before routes so new
messages are not feed into camel

On Tue, May 9, 2023 at 7:05 PM Gaurav Kumar  wrote:

> Hi
> I am using camel (3.14) with springboot.
>
> Application is also using camel quickfixj to connect with the
> vendor platform via FIX protocol.
>
> Application has a public camel route that consumes messages from the Fix
> session, but when I shutdown the application, the public route stops first
> and the quick fix engine stops after 4-5 seconds ( I am using
> *DefaultShutDownStrategy*). This is causing the following issues.
>
> Quick fix engine keeps receiving the messages but because the route is
> stopped so the incoming messages are not consumed by route and they didn't;
> get a chance to process.
>
> Is there any way to stop the Quickfix engine first and then stop the route
> or any other way to sequence the shutdown?
>
>
>
> --
> Regards
> Gaurav
>


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


Shutdown of camel routes

2023-05-09 Thread Gaurav Kumar
Hi
I am using camel (3.14) with springboot.

Application is also using camel quickfixj to connect with the
vendor platform via FIX protocol.

Application has a public camel route that consumes messages from the Fix
session, but when I shutdown the application, the public route stops first
and the quick fix engine stops after 4-5 seconds ( I am using
*DefaultShutDownStrategy*). This is causing the following issues.

Quick fix engine keeps receiving the messages but because the route is
stopped so the incoming messages are not consumed by route and they didn't;
get a chance to process.

Is there any way to stop the Quickfix engine first and then stop the route
or any other way to sequence the shutdown?



-- 
Regards
Gaurav