title: Do I need an application server for transaction management?
body: <p>Do I need an application server for transaction management?, really.</p>
  
  <p>My question is for Spring framework.
  They said (Spring Documentation),</p>
  
  <p><a href="http://static.springsource.org/spring/docs/3.1.x/spring-framework-reference/html/transaction.html#d0e20594" rel="nofollow">http://static.springsource.org/spring/docs/3.1.x/spring-framework-reference/html/transaction.html#d0e20594</a></p>
  
  <p>"Typically you need an application server's JTA capability only if your application needs to handle transactions across multiple resources",
  I use Jboss AS Server and JBoss can provide connections from a connection pool and manage transactions. 
  My configuration file use (local):</p>
  
  <pre><code>&lt;!-- Transaction Config --&gt;
  &lt;bean id="transactionManager"
        class="org.springframework.orm.hibernate3.HibernateTransactionManager"
        p:sessionFactory-ref="sessionFactory"/&gt;
  </code></pre>
  
  <p>Do I need to change to (Global):</p>
  
  <pre><code>&lt;bean id="txManager" 
        class="org.springframework.transaction.jta.JtaTransactionManager"/&gt;
  </code></pre>
  
  <p>I order to use connection pool from Jboss.
  Spring documentation say :</p>
  
  <blockquote>
    <p>In particular, you do not need an application server simply for declarative transactions through EJBs. In fact, even if your application server has powerful JTA capabilities, you may decide that the Spring Framework's declarative transactions offer more power and a more productive programming model than EJB CMT.
    Thanks.</p>
  </blockquote>