-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 
Author Message
 Post subject: Caching & structures duplication over databases
PostPosted: Fri Apr 29, 2005 5:47 am 
Newbie

Joined: Fri Apr 29, 2005 5:29 am
Posts: 6
Location: Avignon - FR
Hibernate 2.1.6

Ehcache config activated in hbm files

Progress 9.1E


Problem synopsis:
The appplication uses several databases while some of them use the same
structures (classes).
Saying Db1 with a class A - table t1
Db2 with a class A - table t1

With one row in db1 - t1 - key1 val1
db2 - t1 - key1 - val2
Using the cache:
first read in db1(key1) ==> val1 OK!!!
first read in db2(key1) ==> val1 KO!!!

Can't afford to duplicate the classes because all the code would be impacted
so I must find a way to get a cache with a more user friendly behaviour.
Does someone knows such product ?

In EHCache the domain concept just handles class names, I could change this behaviour to handle class names in a context?

Any help/pointers/ suggestions greatly appreciated

PS:
don't think that the physical database used is a matter of problem
the problem is strictly a cache one because deactivating it, the problem is gone!!


Top
 Profile  
 
 Post subject:
PostPosted: Mon May 02, 2005 10:58 am 
Newbie

Joined: Fri Apr 29, 2005 5:29 am
Posts: 6
Location: Avignon - FR
I've solved my problement with the regionCachePrefix parameter.


Thanks


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.