This is because of pessimistic locking. Check the JBossCMP wiki Locking page.
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 ?