Originally posted by Vlado Zajac:
This is what the variable reading does.
I don't know what is the intended purpose of that variable, but the code sets it to true during first read and after that all other reads are not counted because it is set to true.
3.5.6 - Exceptions
Lifecycle callback methods may throw runtime exceptions. A runtime exception thrown by a callback method that executes within a transaction causes that transaction to be rolled back. No further lifecycle callback methods will be invoked after a runtime exception is thrown.
In the case of JBoss 4 it is Tomcat 5 it ships with (I don't think it has shipped with v4.0 since version 2.something).