This content has been marked as final.
Show 2 replies
-
1. Re: Entity Beans and row-locking
aloubyansky Jul 30, 2004 2:56 AM (in response to morenito9000)This is because of pessimistic locking. Check the JBossCMP wiki Locking page.
-
2. Re: Entity Beans and row-locking
morenito9000 Jul 30, 2004 4:40 AM (in response to morenito9000)Thank you Loubyansky !
I read the JBoss book's pages concerning Optimistic-Locking.
If I wanna Optimistic-Locking I must use, for my entity bean,
a Container-Configuration like 'Instance per Transaction...."
and define the fields in my bean that I'll use for optimistic-locking policy
(I hope I understood well :-))
Just only two questions:
1) if I declare to use Optmistic-Locking
it has no sense to set the row-locking tag to TRUE ?
2) And if I don't wanna Optimistic-Locking I must do
nothing (that is the default behaviour)
like I experimented with the "two beans" test ?
Thanks again
Moreno