We are using a singleton that starts a
thread when the application initializes. The thread consumes records from a database table and calls a webservice for each record. What is the best way to migrate this scenario to multiple application servers and thus multiple virtual machines. The web service should be only called once for each record in the database.
Best regards.