Spring Integration
  1. Spring Integration
  2. INT-256

Provide options to empty all channels before the bus shuts down.

    Details

    • Type: New Feature New Feature
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Deferred
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None

      Description

      At the moment the default behavior is to drop all messages when the application context shuts down. It would be nice to provide some hooks for the users to clean up messages or wait for the channels to empty before giving the channels up for garbage collection.

      This would be very useful for testcases and the samples, also it would have its uses in production systems probably.

        Issue Links

          Activity

          Hide
          Support Tech added a comment -

          Application that demo's issue of the context shutting down before all messages in the configured channels have had a chance to process. Readme.txt in the project describes the steps to take to produce the errors.

          Show
          Support Tech added a comment - Application that demo's issue of the context shutting down before all messages in the configured channels have had a chance to process. Readme.txt in the project describes the steps to take to produce the errors.
          Hide
          Dave Syer added a comment -

          @support: there is no attachment on this issue. Is that a mistake, or were we supposed to look somewhere else?

          Show
          Dave Syer added a comment - @support: there is no attachment on this issue. Is that a mistake, or were we supposed to look somewhere else?
          Hide
          Oleg Zhurakousky added a comment -

          Moving it to 2.2 for now, but there might be a more general issue related to graceful shutdown which is related to this. Need to find it

          Show
          Oleg Zhurakousky added a comment - Moving it to 2.2 for now, but there might be a more general issue related to graceful shutdown which is related to this. Need to find it
          Hide
          Mark Fisher added a comment -

          not sure if we want to address this one as described or if there is some alternative - moving to M2

          Show
          Mark Fisher added a comment - not sure if we want to address this one as described or if there is some alternative - moving to M2
          Hide
          Gary Russell added a comment -

          Partially implemented.

          See INT-2485, INT-2515

          Show
          Gary Russell added a comment - Partially implemented. See INT-2485 , INT-2515

            People

            • Assignee:
              Gary Russell
              Reporter:
              Iwein Fuld
            • Votes:
              10 Vote for this issue
              Watchers:
              15 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: