Dec 3rd, 2010, 09:52 AM
Calling a spring service concurrently
I posted a message in the Spring Web Services forum but haven't heard back so I thought I would take a different approach and ask a more generalized question here.
Basically I have a requirement to parse a file that contains about 5,000 records and for each record, call a web service. I would like to use Spring WS for calling the SOAP service. Since each request can take up to 2 minutes to get a response back, I would like to make the service calls concurrently.
So my initial thought was to create a multi-threaded service that calls the Spring WS service, so that I can run them concurrently. Is that a good approach? Just looking for design ideas.
We are using Spring2.x and JDK1.5.