Hello again,

I've written a test for testing transactions and isolation level with odmg in 
concurrent threads. 

The test works like that:

- Thread 1 reads an object o
- Thread 1 modifies attribute a object o, but doesn't commit
- Thread 1 waits for Thread 2
- Thread 2 reads the same object
- Thread 2 reads attribute a
- Thread 2 expects to have the uncommited value and compares it with the actual value 
--> success
- Thread 2 waits for Thread 1
- Thread 1 commits changes
- Thread 1 has finished
- Thread 2 reads again object o
- Thread 2 reads attribute a
- Thread 2 expects to have the commited value and compares it with the actual value 
--> failure !

I'm not understanding this behaviour, because I expected that after rereading the 
object it should have the commited value. Am I wrong ? I have used different caches, 
I've closed the transaction in thread 2  but it doesn't behave as I expect. Do you now 
the reason ?

Best regards

Kim


______________________________________________________________________________
WEB.DE FreeMail wird 5 Jahre jung! Feiern Sie mit uns und
nutzen Sie die neuen Funktionen http://f.web.de/features/?mc=021130


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

Reply via email to