title: How do I get transaction info in Spring whether transaction is committed or rollback in a declarative transaction management?
body: <p>I use following declarative Spring transaction:</p>
  
  <pre><code>&lt;!-- Declare a transaction manager--&gt;
      &lt;bean id="transactionManager" class="org.springframework.orm.hibernate3.HibernateTransactionManager" p:sessionFactory-ref="sessionFactory" /&gt;  
  &lt;!-- enable the configuration of transactional behavior based on annotations --&gt;
      &lt;tx:annotation-driven transaction-manager="transactionManager" mode="proxy" proxy-target-class="true"/&gt;
  </code></pre>
  
  <p>Here is the DAO:</p>
  
  <pre><code>@Repository
  @Transactional(readOnly = true, propagation=Propagation.REQUIRES_NEW )
  @Scope("prototype")
  public class Xdao{
  
      public Object getValues(){
          .....
      }
  }
  
  
  @Service
  @Scope("prototype")
  public class Xservice{
  private Xdao xdao;
  
      public Object getx(){
          xdao.getValues();//here I want to know whether the transaction started  is             
          //committed or rollback by aop. Is it possible somehow? I don't want to include that code 
          //in any service or dao layer. 
          .........
      }
  
      @Autowired
      public void setXdao(Xdao xdao){
          this.xdao=xdao;
      }
  }
  </code></pre>
  
  <p>I want to know about transaction status i.e transaction is committed or rolled back. I need it for logging.</p>