-
1. Re: question about locking-policy, MethodOnlyEJBLock
dsundstrom Sep 12, 2002 2:22 AM (in response to fox_hk)My understanding of method only lock is it only assures that a single thread can access the bean instance at one time. This is different from the default transaction lock which assures that an bean can only be accessed in one transaction at a time (until the tx commits or rolls back).
-
2. Re: question about locking-policy, MethodOnlyEJBLock
dsundstrom Sep 12, 2002 2:32 AM (in response to fox_hk)I just taked with Bill Burke, and he says that you almost always use MethodOnlyLock with multi instance. With single instanc you effectivly get READ_UNCOMITTED.
-
3. Re: question about locking-policy, MethodOnlyEJBLock
fox_hk Sep 12, 2002 5:56 AM (in response to fox_hk)If commit-option B / C is used, will jboss strictly assign every transaction with its own instance of entity bean as same record is accessed. Will there be a chance that some transactions get its own instance of entity bean, some transactions "share" same instance of entity bean when same record is read/write.
It is highly appreciated you can provide more information to me.
regards
fox -
4. Re: question about locking-policy, MethodOnlyEJBLock
fox_hk Sep 12, 2002 5:57 AM (in response to fox_hk)If commit-option B / C is used, will jboss strictly assign every transaction with its own instance of entity bean as same record is accessed. Will there be a chance that some transactions get its own instance of entity bean, some transactions "share" same instance of entity bean when same record is read/write.
It is highly appreciated you can provide more information to me.
regards
fox -
5. Re: question about locking-policy, MethodOnlyEJBLock
fox_hk Sep 12, 2002 5:59 AM (in response to fox_hk)If commit-option B / C is used, will jboss strictly assign every transaction with its own instance of entity bean as same record is accessed. Will there be a chance that some transactions get its own instance of entity bean, some transactions "share" same instance of entity bean when same record is read/write.
It is highly appreciated you can provide more information to me.
regards
fox -
6. Re: question about locking-policy, MethodOnlyEJBLock
dsundstrom Sep 12, 2002 1:29 PM (in response to fox_hk)You just went way beyond my knowledge level on this. I suggest you ask on the jboss-users mailing list or the EJB/JBoss forum. Bill Burke is the guy that knows this stuff, and I know he reads the users list, but I don't know about the forum.