Problem solved!!! I had "useShutdownHook" set to false in my embedded broker. Setting that to true solved it. Now everything works like a charm.
I will add the depends-on as well to have them shutdown in the correct order. Thank you very much for your help! Claus Ibsen-2 wrote > > Yeah good point, you can use the depends-on attribute in the Spring > XML file, to tell it to have the broker depend on <camelContext>. > This is needed to have spring shutdown camel first. > -- View this message in context: http://camel.465427.n5.nabble.com/shutting-down-Camel-in-flight-messages-gone-tp5717930p5718277.html Sent from the Camel - Users mailing list archive at Nabble.com.