Jul 3rd, 2012, 12:49 PM
Concurrency issue in RestTemplate Spring 3.0.0
There seems to be concurrency issue when using Spring's RestTemplate.
Resttemplate has been overriden to pass cookies and used for rest webservice calls in our application.
However when load on the system increases we see concurrency issues, that probably thread connection has been re-used.
User A access the application calls ->> makes webservice call - Still in process
User B access the application calls ->> makes webservice call - Response completed
User A gets User B's response.
Spring version: 3.0.0
apache httpclient: 4.1.1
Jul 3rd, 2012, 12:52 PM
The issue has been fixed, when we replaced the Spring's overriden resttemplate with apache HttpClient template.
httpclient version: 4.2