I'm trying to create a web application with OJB & Struts running on Tomcat.

When I want to retrieve a set of Objects just after storing a new
Object of the same type, this added Object is repeated many times at
the end of the Collection.

Example : if the records are :
John, Carla, Greg

I add Joe, so it becomes :
John, Carla, Greg, Joe

Then If now I add Vanessa I get this :
John, Carla, Greg, Vanessa, Vanessa

It does the same as long I add new objects, but Objects that were
previously in the database like the three first are never altered.

However, despite the retrieved data is wrong, the database data is right !!!

If I try to reproduce the same scenario with jUnit test case, it
doesn't create any error.

I checked by logging access to data when retrieving it with
PersistanceBroker to be sure it wasn't Struts in fault.

I thought It was due to OJB cache, which is by default not
Thread-safe, but after trying ObjectCacheDefaultImpl,
ObjectCacheEmptyImpl and ObjectCachePerBrokerImpl I always get the
same Error.

Any Idea about the possible Source of the problem would be appreciated.

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

Reply via email to