I've just committed and tested Peter Murray's patch for read-only method
locks. Great work Peter!
Here's the deal.
Transactional locks will now be released at the end of the invocation if the
bean is readonly or the method has been declared read-only in bean meta
data. Basically if you go into jboss.xml and declare "get*" methods as
read-only, a transactional lock will not be performed when those methods are
invoked.
This will increase performance and throughput on highly contended beans, and
decrease the likelyhood of deadlock.
To define read-only methods in jboss.xml
<jboss>
<enterprise-beans>
<entity>
<ejb-name>nextgen.EnterpriseEntity</ejb-name>
<jndi-name>nextgen.EnterpriseEntity</jndi-name>
<method-attributes>
<method>
<method-name>get*</method-name>
<read-only>true</read-only>
</method>
<method>
<method-name>anotherReadOnlyMethod</method-name>
<read-only>true</read-only>
</method>
</method-attributes>
</entity>
</enterprise-beans>
_______________________________________________
Jboss-development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development