This discussion is archived
11 Replies Latest reply: Jul 26, 2011 8:54 PM by EJP RSS

synchronize block of code in multiple JVM instances

816629 Newbie
Currently Being Moderated
I have a servlet code, synchronized the code using synchrozie block, it is working if i user single instace of web server(tomcat), all threads accessing same code are synchronized, whereas same code if i deploye lin oad balanced environement 2 application servers(each 2 jvms ) i.e total JVMs, synchronization is failing.

how i can achieve synchronization in load balanced environemtn(websphere application server version 7.0.0.13).

Legend

  • Correct Answers - 10 points
  • Helpful Answers - 5 points