Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Weblogic Clustering and load balancing

 
nandkishor rao
Ranch Hand
Posts: 53
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am trying to create a weblogic cluster with two managed servers but as our application has Static HashMaps,singleton classes etc which are updating in each transaction. So i want to know whether a memory replication is possible so that in case of failover or load balacing this data should be shared by both the servers.
 
Tony McClay
Ranch Hand
Posts: 33
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
nandkishor ra
our application has Static HashMaps,singleton classes etc which are updating in each transaction.


Well ya had me, until you said "Updating in each transaction."

Yes Weblogic does have the means through it's Replicated JNDI Naming Space, to share some distributed objects, but the objects are not transaction aware.

It sounds like this is persistent state data. I have modeled this situation in the past with a Meta Data Schema in a database. Often not the same database/vendor as my main application (Good separation - Application/Business data in one data store, Application Meta or state data in another data store). The benefits of this approach is that the data store is shared among as many managed servers as you need, and with Java Persistence Architecture (JPA) - (KODO/Open JPA) and a perhaps @version tag, this is a proven solution that will scale to as many managed severs as you need with transaction awareness.

Just 1 on many possible solutions.

Tony
Sun Certified Web Business Component Developer
Sun Certified Web Components Developer
Sun Certified Programmer for the Java 2 Platform
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic