just finished integrating
struts 1.3 ,hibernate 3.2 and spring 2.5,a problem came up when I was doing some
test work,here is my simplified ItemManager class:
and part of my xml configuration:
If I call addItem() and send in a well-formed Item object,it works just fine,but if I choose to explicitly throw a RuntimeException after saving a Item,shouldn't Spring do a rollback for me?Well it doesn't, I have spent hours checking and altering my code and still can't figure out the reason,is there anyone can explain this for me?