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?


Reply With Quote