posted 20 years ago
My task is the following:
every 30 days, the system has to make a request(to 3rd party) which will generate a new password.
Problem: The app runs in a clustered environment so we need some synchroization between servers so only one makes the request. we wouldn't want to have 2 requests to change a password.
My Solution: Using the datastore(db2) create a table that has the current password, expiration date, and a flag which shows a request is currently being processed. The process would check the date, notice it is expired, update the request flag(so no other requests will be processed), do it's thing and put the new password & date in DB then reset flag. AFter that the other requests can be processed.
Can anyone tell me if there is any other non-websphere specific way of doing this? This shop is afraid of making anything more than web applications.
Thanks!