I'm using Spring 2.0 declarative transactions with <tx:annotation-driven/> and want an interceptor to be called *before* commit.
The problem is that the "order" property of the transaction aspect is Integer.MAX_VALUE so I can't use a higher value in my aspect.
As a workaround I'm also using Integer.MAX_VALUE and it is actually being called before commit, but I'm worried if it is just by luck.
And what if I have more aspects that must be ordered before commit? Is it possible to change the order property of transaction aspect? The assumption that nothing will intercept after "begin transaction" and before "commit" is too restrictive...