I am new to servlets and spring. I have 2 apps that are talking with each other using http request/request. App1 is C++ legacy app and App2 is developed using spring. In my App2 I have a servlet that extends FrameworkServlet. In my context defintion I have a singleton bean "ProcessorBean", that gets called by the servlet to process the http request and persist data to DB. My questiion is when http requests are received by the servlet are they queued up and the same instance of the ProcessorBean is called to process each request? Or does the BeanFactory creates several instances of the ProcessorBean? My concern is that since my ProcessorBean is modifying records in DB, if serveral instances of them are running I should be worried about getting concurrency issues.
Any help of ideas about alternative implementaions would be appreciated.