Hello Andrew,

In a precedent post we have tell in the mailing list that we have
implemented for our needs an implementation of the ObjectCache and we have
use the custom attributes capabilites of OJB to achieve that so it's very
easy to use.
So in your repository you just need to add the following tags at the
"class-descriptor" level when you want a class to go int the cache :

          <attribute 
           attribute-name="cache"
           attribute-value="true"
          />     
          <attribute 
           attribute-name="expiration"
           attribute-value="-1"
          />  

As you can see we have also added a time duration expiration for the object
in the cache.
If you want we can provide you with the source of our implementation.

PS : currently the few comments in our code are in french but the code is
easy to read so I don't you'll mind for that :-)

Jean-Baptiste Claramonte
ASTON

-----Message d'origine-----
De : Andrew Gilbert [mailto:[EMAIL PROTECTED]]
Envoy� : jeudi 13 f�vrier 2003 20:13
� : [EMAIL PROTECTED]
Objet : Second Attempt at Question - Per class caching,
MetaObjectCacheImpl


We have some interest in per class caching behavior. For example, class
Person uses <null> cache, class Group uses <permanent> cache, etc. 

Any examples of actually using MetaObjectCacheImpl or is it just provided as
an example implementation? Believe we can use it providing we have our own
CacheFactory and a separate config/property file, just wondering if there
was already an intent to expose this as a feature using the standard
repository or a better way to boot strap it.

Thanks.

(Sorry for earlier post regarding foreign keys, think I only added
confusion. Will stick to questions for a while....)



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Reply via email to