File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes BEA/Weblogic and the fly likes Weblogic Clustering and load balancing Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » BEA/Weblogic
Bookmark "Weblogic Clustering and load balancing" Watch "Weblogic Clustering and load balancing" New topic

Weblogic Clustering and load balancing

nandkishor rao
Ranch Hand

Joined: May 24, 2006
Posts: 53
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

Joined: May 22, 2003
Posts: 33
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.

Sun Certified Web Business Component Developer
Sun Certified Web Components Developer
Sun Certified Programmer for the Java 2 Platform

Tony McClay<br />Architect / Developer, SOA and Jave Enterprise Edition 1-5<br />---------------------------------------------------------------------- <br />Sun Certified Enterprise Architect, Enterprise Edition 5 (Step 1 of 3)<br />Sun Certified Web Component Developer, Enterprise Edition 4<br />Sun Certified Business Component Developer Enterprise Edition 5<br />Sun Certified Programmer , Standard Edition 5.0
I agree. Here's the link:
subject: Weblogic Clustering and load balancing
It's not a secret anymore!