Results 1 to 2 of 2

Thread: Stop receiving messages in case of an Exception

  1. #1
    Join Date
    Aug 2008
    Posts
    11

    Default Stop receiving messages in case of an Exception

    I'm using the

    Code:
    <jms:message-driven-channel-adapter id="testQueueAdapter" container="testQueueListener"
                                            channel="testQueueInChannel" />
    to receive JMS messages from a WebSphere MQ queue. When an Exception occurs when handling a message, I want the adapter to stop receiving messages.
    How can I do this ?

  2. #2
    Join Date
    Mar 2010
    Location
    Gtr Philadelphia, PA
    Posts
    2,028

    Default

    Add a <control-bus/> and send a message to it "testQueueAdapter.stop()".
    Gary P. Russell
    Spring Integration Team
    SpringSource, a division of VMware

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •