Results 1 to 2 of 2

Thread: XML polling from webapp

  1. #1
    Join Date
    May 2008
    Posts
    1

    Default 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. #2
    Join Date
    Oct 2007
    Location
    Toronto, ON
    Posts
    90

    Default

    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
    Marius Bogoevici,
    Spring Integration Committer

Posting Permissions

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