Announcement Announcement Module
No announcement yet.
Dynamic Queues - Cleanup Page Title Module
Move Remove Collapse
Conversation Detail Module
  • Filter
  • Time
  • Show
Clear All
new posts

  • Dynamic Queues - Cleanup

    I've managed to get SI to dynamically connect to queues. This works well, but the problem is cleanup. How do I disconnect from a queue (or how do I unsubscribe from a topic)? I need this cleanup in particular for automated testing, so that different consumers can be used on queues.

  • #2
    There is an unsubscribe method on SubscribableChannel. Is that not what you are looking for? It seems from the vocabulary that you're using you are looking at JMS particularities and not so much at Spring Integration... Maybe you can show some code samples to clear things up.


    • #3
      For example, the MessageBus has a .initialize() and .start() but no .stop().
      The MessageBus has a registerChannel() but no unregisterChannel().
      I can't convince the threads that SI creates to disappear when I want to stop the message bus.


      • #4
        It sounds like you are still using a milestone version? For 1.0 final or later, there is no MessageBus instance.