Results 1 to 3 of 3

Thread: Disable File Poller

  1. #1

    Default 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. #2
    Join Date
    Jan 2008
    Location
    Mohnton, PA USA (that's near Philadelphia)
    Posts
    2,148

    Default

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

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

    Default

    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()'.
    Gary P. Russell
    Spring Integration Team
    SpringSource, a division of VMware

Tags for this Thread

Posting Permissions

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