Announcement Announcement Module
Collapse
No announcement yet.
XML polling from webapp Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • XML polling from webapp

    I want to use Spring Integration to poll for XML files in a certain directory. But I want to deploy this with my webapp. Currently I managed to do this by creating a GenericServlet that spawn's the threads for polling, but this isn't a great idea to do because those threads are beyond the container's control.

    I also noticed a strange behavior on my development machine, where other webapps wouldn't start anymore.

    What would be a better solution to this?

  • #2
    Hi,

    First, you can use the <file-adapter/> for polling the directory for files.

    Secondly - you can plug in a ScheduledExecutorService for managing threads externally, rather than using the framework's own threading mechanism. What container are you using?

    Regards,
    Marius

    Comment

    Working...
    X