Finally I found the error myself, the repository_database.xml file
cache properties are not generated automatically on build when
changing values in OJB.properties, so I modified the xml file manually
and now it works great with ObjectCachePerBrokerImpl.


By the way, How could I generate automatically the
repository_database.xml cache settings with OJB.properties cache
settings instead of having to change it on every build ?

Of course I know that I can simply change the database_properties.xml
template file, but I think doing it automatically on build time would
be easier and less error-prone because changes in OJB.properties files
are not taken in account.

Next time I'll check every file 10 times before posting.....




On Thu, 13 Jan 2005 15:38:43 +0900, Sylvain ~ <[EMAIL PROTECTED]> wrote:
> 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