From: <And...@gm...> - 2007-11-26 09:40:21
|
Hallo, I have a problem with SingletonEHCache. If I create a new Object it is created a new row in database table. But if I take a findAll() after create then I don`t see the new Object. The same effect during delete a Object. In Database it is deleted. During findAll() after delete it come a org.hibernate.ObjectNotFoundException: No row with the given identifier exists That show me that cache is not up-to-date. But with CacheStrategie: read-write the cache should be up-to-date. But if I setmaxElementsInMemory to a low value(1) the I see a differnt between the cache before/after the create/delete. After some minutes after timeToLive when the values read new from DB in cache the display shows the correct data. I hope you can help me. Thanks. Andre Hibernate: 3.2.1 EHCache: 1.2.3 SecondLevelCache on SecondLevelCacheProvider: SingletonEHCache SecondLevelCacheStrategie: read-write -- André Steinmetzger Büchnerweg 17 12489 Berlin Email: and...@gm... Tel.: 030/53211648 Psssst! Schon vom neuen GMX MultiMessenger gehört? Der kann`s mit allen: http://www.gmx.net/de/go/multimessenger |