Help coderanch get a
new server
by contributing to the fundraiser
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Devaka Cooray
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Tim Moores
  • Carey Brown
  • Mikalai Zaikin
Bartenders:
  • Lou Hamers
  • Piet Souris
  • Frits Walraven

synchronization between clusters...

 
Ranch Hand
Posts: 31
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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!
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic