Is this implemented at the class level or does this need to be set on
methods?
--
View this message in context:
http://openejb.979440.n4.nabble.com/BeanContext-getLockType-is-always-LockType-WRITE-tp4655669.html
Sent from the OpenEJB Dev mailing list archive at Nabble.com.
Hi Andy,
it is done
in org.apache.openejb.assembler.classic.MethodConcurrencyBuilder#build
- Romain
2012/6/18 AndyG andy.gumbre...@orprovision.com
Is this implemented at the class level or does this need to be set on
methods?
--
View this message in context:
Hi Romain,
I am still trying to understand if the BeanContext#getLockType() should
return a variable and not a constant?
If a method has no lock annotation then as far as I can follow the default
is to call BeanContext#getLockType(), so the default is always
LockType.WRITE - Shouldn't this be
in fact the default is the spec one (an error probably :s) but if you
specify it as in your sample it is overriden for methods (the expected
behavior) in the builder. I understand your point but the behavior is still
correct normally.
- Romain
2012/6/18 AndyG andy.gumbre...@orprovision.com
Hi
Is there a way of getting the current lock context from the method call? I'd
like to write a test for this.
--
View this message in context:
http://openejb.979440.n4.nabble.com/BeanContext-getLockType-is-always-LockType-WRITE-tp4655669p4655674.html
Sent from the OpenEJB Dev mailing list archive
i guess using org.apache.openejb.BeanContext#getMethodContext and
org.apache.openejb.MethodContext#getLockType does the trick
- Romain
2012/6/18 AndyG andy.gumbre...@orprovision.com
Is there a way of getting the current lock context from the method call?
I'd
like to write a test for this.