Announcement Announcement Module
No announcement yet.
Pause a jms message-driven-channel-adapter Page Title Module
Move Remove Collapse
Conversation Detail Module
  • Filter
  • Time
  • Show
Clear All
new posts

  • Pause a jms message-driven-channel-adapter

    is there a simple way of controlling a <jms:message-driven-channel-adapter/> so that we can pause it from taking messages off a queue? Maybe via JMX?

  • #2
    LifeCycle operations (start(), stop(), isRunning()) are now available via JMX for message-driven-channel-adapters (as of 2.0.4 - soon to be released). See

    You can get it now by setting your POM to 2.0.4.BUILD-SNAPSHOT.

    MBeans have been available for other adapters since 2.0. You export SI MBeans by adding <int-jmx:mbean-export/> to your config. 2.0.4 gives you some control over the object names via the object-name-static-properties attribute.

    You can also send a message to an <int:control-bus/> with a payload of '@adapter.stop()' (where 'adapter' is the id of your adapter bean. This has also been available since 2.0.

    Hope that helps.
    Last edited by Gary Russell; May 13th, 2011, 09:39 AM.


    • #3
      thanks, sounds very good, i will have a play with this as soon as I can.