• Post Reply Bookmark Topic Watch Topic
  • New Topic

Synchronization and cluster  RSS feed

 
Sandhya Narayanan
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
We have a web application deployed in a WebSphere AppServer cluster. We are doing some atomic operations in synchronized blocks. Apparently this will not work since every server instance is a different JVM and they don't share locks. How do we handle this situation? Please let me know your suggestions.
Thanks,
Sandhya
 
arulk pillai
Author
Ranch Hand
Posts: 3413
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can you use a database flag and get the operation to check for the presence or status of this flag before processing. Remember to do a select for update when you change the state of the flag.
 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!