Just as a future reference to others with the same issue:

Using a depends-on from the broker to camel didn't work by itself without
useShutdownHook set to true.

I am now using both the shutdown hook and a depends-on to make completely
sure stuff is dismantled in the correct order. 

This is my working Spring xml for the broker:

  <amq:broker useJmx="true" persistent="true" useShutdownHook="true"
context:depends-on="camel" xmlns="http://activemq.apache.org/schema/core";>
    <transportConnectors>
      <transportConnector uri="tcp://localhost:61616" />
    </transportConnectors>
    <persistenceAdapter>
      <kahaPersistenceAdapter directory="activemq-data"
maxDataFileLength="33554432" />
    </persistenceAdapter>
  </amq:broker> 







--
View this message in context: 
http://camel.465427.n5.nabble.com/shutting-down-Camel-in-flight-messages-gone-tp5717930p5718282.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to