| 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
|
 |
 |
|
|
subject: Synchronization and cluster
|
|
|