I am working on a system integration project that will need to process an xml file into appropriate xmlrpc calls and process the responses.

The existing process is a Java console app that makes an http request to a servlet via the web every 10 seconds or so to see if there is data to process. If there is, a list is returned and a second servlet is called once for each item in the list and the xml returned is placed into an 'incoming' folder.

A new customer has a process that will require another process that will monitor the input directory for new files, and the files processed into the appropriate xmlrpc calls, then place the response information into an 'output' folder.

I am wondering if Spring can help me create a better solution for this process that will make future implementations for different customers easier?? Completely revamping the process is not out of the question either if there are better ideas!!