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 <[email protected]> > 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 defined / override-able by a class > annotation? > > > @javax.ejb.Lock(javax.ejb.LockType.READ) > public class CoreImpl extends AbstractCore implements Core { > ... > //This should be READ, but it is WRITE? > public String getUnitName() { > > > Andy > > -- > View this message in context: > http://openejb.979440.n4.nabble.com/BeanContext-getLockType-is-always-LockType-WRITE-tp4655669p4655672.html > Sent from the OpenEJB Dev mailing list archive at Nabble.com. >
