Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

synchronize Cache

 
PrashantSonar CSN
Greenhorn
Posts: 11
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I have two system running on two seperate JVM's and important functionality is on both the system one cache program is running which hold data in List ok but both are shairing the same database..
So now my problem is that I want to commuincate with both the cache or synchronize the cache so whenever change happens at one end should be reflected at another end.
Throw some ideas.
 
Stan James
(instanceof Sidekick)
Ranch Hand
Posts: 8791
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
There are commercial products. We're buying a vendor server that OEMs one, but I can't recall the name right now. Google on "distributed java cache" and see what you find.
 
PrashantSonar CSN
Greenhorn
Posts: 11
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have two system running on two seperate JVM's and two seperate App Servers(both are weblogic 6.1),the important functionality is on both the system there is a cache program which holds data in HashMap but both are shairing the same database..
So for commuincating with both the cache or synchronize the cache as changes happen at any end should be reflected at another end, currently I am using http call to notify the change at one end so accordingly another program removes the old values and when next request comes it refreshes the data. This is all happening in current scenario....
This complete thing is in Java programs so now I want only one cache for both the servers which will share the same database.
So Client want to use J2EE means ur EJB feature so what kind of bean is useful for this scenario..?
On which server it needs to be deployed or will there be any server clustering?
And how the notification process for synchronization of changes in database will happen...?
Throw some ideas.....
 
corneliu mamut
Greenhorn
Posts: 4
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I think that EJB solution is ok. There are two types of EJB: session beans and entity beans. For your problem, an entity bean can replace your HashMap.
The home server for the EJB is indicated to be the server that has lower charge .
HTH
 
PrashantSonar CSN
Greenhorn
Posts: 11
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Could any one tell exact what kind of bean will be useful..and if possible implementation idea is appreciated..
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic