File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Java in General and the fly likes synchronize Cache Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Java in General
Bookmark "synchronize Cache " Watch "synchronize Cache " New topic
Author

synchronize Cache

PrashantSonar CSN
Greenhorn

Joined: Sep 30, 2003
Posts: 11
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

Joined: Jan 29, 2003
Posts: 8791
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.


A good question is never answered. It is not a bolt to be tightened into place but a seed to be planted and to bear more seed toward the hope of greening the landscape of the idea. John Ciardi
PrashantSonar CSN
Greenhorn

Joined: Sep 30, 2003
Posts: 11
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

Joined: Oct 29, 2002
Posts: 4
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

Joined: Sep 30, 2003
Posts: 11
Could any one tell exact what kind of bean will be useful..and if possible implementation idea is appreciated..
 
Consider Paul's rocket mass heater.
 
subject: synchronize Cache
 
Similar Threads
Cache
Questions to -- Ken Krebs
Cache
Cache
how to synchornize "select"?