The answers are:
1. To control the rollback or commit of transactions if an exception is
thrown, you can declare it like this in your applicationContext.xml file
(BeanFactory config):
<prop
key="checkOutServiceRequest">PROPAGATION_REQUIRED,-AlreadyCheckedOutException</prop>
The minus sign indicates that a rollback should occur if the exception is
thrown in the method checkOutServiceRequest. A plus sign would indicate
that it should be committed.
2. Re: checkpoints. If you're using JDBC or Hibernate, you can get
access to the connection from the session and you can probably issue
commits on this connection as appropriate until the final "spring handled"
commit is taken care of, I haven't tested, this but i imagine it should
work.
If there are any other questions that I didn't answer, please PM me.
Thanks.
- Brian
|