aspose file tools
The moose likes Threads and Synchronization and the fly likes Synchronization and cluster Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » Threads and Synchronization
Reply Bookmark "Synchronization and cluster" Watch "Synchronization and cluster" New topic
Author

Synchronization and cluster

Sandhya Narayanan
Greenhorn

Joined: Apr 22, 2007
Posts: 7
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

Joined: May 31, 2007
Posts: 3190
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.


Java Interview Questions and Answers Blog | Amazon.com profile | Java Interview Books
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Synchronization and cluster
 
Similar Threads
cluster and hot stand by
WAS 5.0 cluster doubt
Do we need Websphere edge server to cluster the websphere application server?
Tomcat cluster with IIS cluster
What is a Cluster