Hi,
I have declared ClassA.methodX() as PROGATAION_REQUIRED.
The transaction mechaism works fine, when other object
invokes ClassA.methodX() directly. If methodX() throws Exception, all data are rollback successfully.
But if I create another method as ClassA.methodY(),
which has no transaction property, and it will invoke ClassA.methodX(),
such as:
Then another object invoke methodY() first,Code:ClassA { public void methodY() { this.methodX(); } public void methodX() { .... } }
-> methodX() is ivoked -> methodX() throws Exceptions,
data are not rollback !?
Is it normal?
ps. methodX() will invoke other methods, some are also declared as PROGATAION_REQUIRED
ps. I am using Spring 1.1.1
Thanks for any comment!


Reply With Quote