Strange OJB Behaviour with Struts

2005-01-12 Thread Sylvain ~
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]



Re: strange OJB behaviour

2004-12-28 Thread Tino Schöllhorn
Hi,
would you post your loop-code, so it is possible to see what changes you 
are doing?

Tino
T. K. Chris wrote:
HI,
I have tried to access a database through a loop.
while the loop is running, I manually modify (in live)
and commit a record in the data base. The modification
is not detected, at the next incrementation within the
running loop.
What could be the problem. It sounds as I am missing
something...
Your help is precious;
Thanks.
__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

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


strange OJB behaviour

2004-12-26 Thread T. K. Chris
HI,

I have tried to access a database through a loop.
while the loop is running, I manually modify (in live)
and commit a record in the data base. The modification
is not detected, at the next incrementation within the
running loop.

What could be the problem. It sounds as I am missing
something...

Your help is precious;
Thanks.

__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

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



unable to select recently inserted object : Strange OJB behaviour

2004-12-26 Thread dave riveli
HI,
 
I have tried to access a database through a loop.
while the loop is running, I manually modify (in live)
and commit a record in the data base. The modification
is not detected, at the next incrementation within the
running loop.
 
What could be the problem? 
How can I solve this? 
It sounds as I am missing something...
 
Your help is precious;
 
Thanks


-
Do you Yahoo!?
 Yahoo! Mail - Find what you need with new enhanced search. Learn more.