title: Spring hibernate , how to call some method after transaction commit or transaction rollback
body: <p>I need to call some method after transaction succes or rollback. I am using as </p>
  
  <pre><code>    &lt;bean name="openSessionInViewInterceptor" class="org.springframework.orm.hibernate3.support.OpenSessionInViewInterceptor"&gt;
                  &lt;property name="sessionFactory"&gt;
                      &lt;ref local="mysessionFactory"/&gt;
                  &lt;/property&gt;
      &lt;/bean&gt;
  
      &lt;bean id="txManager" class="org.springframework.orm.hibernate3.HibernateTransactionManager"&gt;
          &lt;property name="sessionFactory"&gt;
              &lt;ref local="mysessionFactory"/&gt;
          &lt;/property&gt;
      &lt;/bean&gt;
  
  &lt;tx:annotation-driven transaction-manager="txManager" proxy-target-class="true"/&gt;
  </code></pre>
  
  <p>The application use some external web services which needs to be "cleaned" when the internal transaction gets rollbacked. 
  Is there way how to accomplish this without using declarative transaction management. </p>