I am working on an app that strings together a variety of components using spring integration. My issue is, when the app is gracefully shutting down, I want to send a message through the system to kind of "flush" things through, in a sense. It's not exactly a flush, but it does what a flush would do and more. Anyway, when the shutdown message is received and spring starts "destroy'ing" it's beans, the message doesn't flow through as I want it to. This, I believe, is because the beans are being destroyed at the same time. Can anyone offer insight as to how to go about implementing this functionality that I am describing? If anyone has any more specific questions, I will be happy to explain things in as much detail as I am allowed.