Hey,
I'm working on an application which needs to update a legacy system. Problem is that the legacy system can only handle one update at a time. Right now I have the call to the legacy system in a servlet, but this will obviously cause problems if multiple instances of the servlet try and talk to the legacy. I was thinking of creating a singleton to handle this problem and single threading the method that communicates to the destination? Does this sound like a good idea? Has anyone got any good simple examples of single threading a method inside a class?
Thanks
Peter
Start Free Trial