This content has been marked as final.
Show 4 replies
-
1. Re: JBosscache dirty read even though isolation is REPEATABL
vishwasoft Jun 19, 2009 5:12 PM (in response to vishwasoft)I have tried with Isolation level READ_COMMITTED also.
I have replaced array in my TestEntity object, but still the same problem -
2. Re: JBosscache dirty read even though isolation is REPEATABL
mircea.markus Jun 22, 2009 4:12 AM (in response to vishwasoft)Are you running both EJB's in the same JVM? That would explain it, as TX rollback won't affect the changes you've done to TestEntity, only the operations you've done on cache. That is the changes TestEntity.update does on the object won't be affected by the TransactionManager.rollback call. Following will be affected though:
cache.put(fqn, "key", "1"); tm.begin(); cache.put(fqn, "key", "2"); tm.rollback(); assert cache.get(fqn, "key").equals("1") : "this is true, won't fail!!!";
-
3. Re: JBosscache dirty read even though isolation is REPEATABL
mircea.markus Jun 22, 2009 4:36 AM (in response to vishwasoft)On the other post I saw you're using DummyTransactionManagerLookup. You're running in the application server so use GenericTransactionManagerLookup.
-
4. Re: JBosscache dirty read even though isolation is REPEATABL
vishwasoft Jun 22, 2009 2:16 PM (in response to vishwasoft)Thank you for timely reply.
Yes, I'm running cache & EJB in same JVM.
This is the case, I need to look for alternative design.
Thank you very much