Results 1 to 3 of 3

Thread: Interrupt listener.DefaultMessageListenerContainer in case of error

  1. #1
    Join Date
    Dec 2011
    Posts
    26

    Default Interrupt listener.DefaultMessageListenerContainer in case of error

    Hi everybody,

    I'm developing a JMS Listener with Spring Integration and my jms:message-driven-channel-adapter is using the error-channel in order to manage the errors throwed during the process. My problem is that even with errors the process keep listening the queue and i would like to interrupt the process depending of the kind of error retrived.
    There is any solution provided by Spring Integration to do that? Maybe i could use a service-activator... but how?

    Thanks very much!

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

    Default

    You can use a

    Code:
    <int:control-bus input-channel="control" />
    and send a message to the channel 'control' to stop the adapter '@messageDrivenAdapterId.stop()'
    Gary P. Russell
    Spring Integration Team
    SpringSource, a division of VMware

  3. #3
    Join Date
    Dec 2011
    Posts
    26

    Default

    Many thanks!! is exacly what i was looking for

Posting Permissions

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