Hi Clay,

> > I am using ojb 1.0 rc4, but have a problem when get a collecction
from
> > the database(postgresql 7.3). when I call:
> >
> > broker.beginTransaction();
> > Collection allProducts = broker.getCollectionByQuery(query);
> > broker.commitTransaction();
> >
> > The first time is correct, but wrong with the following operations,
> > always return the old collection.
> >
> > So I modify OJB.properties, using ObjectCacheEmptyImpl instead of
> > ObjectCacheDefaultImpl, then everything is ok.
> >
> > So, is there something wrong with OjbCacheDefaultImpl or my
configuration?
> >

Think both is ok. ObjectCacheDefaultImpl is
a simple global cache which does not remove
expired objects (no decay time support for objects) or does refresh
periodically.
But if objects were changed in OJB
these changes reflected in cache. If objects
outside of OJB were changed you are doomed ;-).
You can easily write your own more
sophisticated ObjectCache implementation.
see
http://db.apache.org/ojb/objectcache.html
Oleg is currently refactoring the cache
package, so rc5 will offer much more
flexibility .

regards,
Armin

> > BTW, I have set autoCommit="0" in repository_database.xml, I think
> > autoCommit is not very good in some situations?
> >
> > Thanks for your any hints and help!
> >
> > linuxman
> >
> > _________________________________________________________________
> > 免费下载 MSN Explorer:   http://explorer.msn.com/lccn/
> >
>
> ---------------------------------------------------------------------
> > 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]
>
>
>



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

Reply via email to