Announcement Announcement Module
Collapse
No announcement yet.
Disable File Poller Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Disable File Poller

    How do we disable a File Poller in production? This is a very common scenario, where if we encounter an issue, we need to switch it off at runtime.

    Is there any programmatic access available to the inbound channel adapter?

  • #2
    you can execute stop() method on it since the adapter itself is an instance of Lifecycle

    Comment


    • #3
      These methods are also exposed as MBean operations if you add

      Code:
      <int-jmx:mbean-export/>
      to your context; you also need

      Code:
      <context:mbean-server/>
      You can then invoke the operations using JMX; for example with VisualVM, or JConsole.

      Finally, you can use an <int:control-bus/> to send a message to the adapter '@adapterId.stop()'.

      Comment

      Working...
      X