Hi Stefan, ----- Original Message ----- From: "Stefan Schl�sser" <[EMAIL PROTECTED]> To: "oJB Users List" <[EMAIL PROTECTED]> Sent: Friday, February 21, 2003 10:50 AM Subject: Caching of Objects
> Hi, > > OJB has a build in object cache, after reading its interface, I got > the impression that I have to explictly put objects into the cache. No, it's automatic done. > This does however not seem to be the case, OJB seems to cache objects > on its own accord. Yes. > > Is there some documentation telling me how I can gain control of the > cache, I think not, best is to take a look in PersistenceBrokerImpl class. > since e.g. I might not want to cache all types of objects etc > ? Do I have to explictly remove objects I don't want to be cached? Currently yes, but next time the object was selected it will be put in the cache again. Thus best way is to implement your own cache, or to extend one of the implementations to check if the given object should be cached or not. Maybe it would be useful to add an attribute 'cacheable' (true|false) to the class-descriptor in repository.dtd to flag if an object should be cached or not. regards, Armin r any hints, > > Stefan > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
