title: JtaTransaction with Resin
body: <p>I use JtaTransactionManager of Resin to manage jta transaction in Resin Server,following is spring config for transactionManager.</p>
  
  <pre><code>&lt;bean id="transactionManager" class="org.springframework.transaction.jta.JtaTransactionManager"&gt;
      &lt;property name="allowCustomIsolationLevels"&gt;
          &lt;value&gt;true&lt;/value&gt;
      &lt;/property&gt;
  &lt;/bean&gt;
  </code></pre>
  
  <p>following is datasource config.</p>
  
  <pre><code>&lt;bean id="dataSourceFinance" class="org.apache.commons.dbcp.BasicDataSource" destroy-method="close"&gt;
      &lt;property name="driverClassName"&gt;&lt;value&gt;${hibernate.connection.driver_class}&lt;/value&gt;&lt;/property&gt;
      &lt;property name="url"&gt;&lt;value&gt;${hibernate.connection.finance.url}&lt;/value&gt;&lt;/property&gt;
      &lt;property name="username"&gt;&lt;value&gt;${hibernate.connection.finance.username}&lt;/value&gt;&lt;/property&gt;
      &lt;property name="password"&gt;&lt;value&gt;${hibernate.connection.finance.password}&lt;/value&gt;&lt;/property&gt;
  &lt;/bean&gt;
  </code></pre>
  
  <ol>
  <li>I wonder why the common connection also supports two phase commit since this config can work well.</li>
  <li>When i have to replace the connection of dbcp with xa connection.</li>
  <li>Whether the connection of dbcp supports two phase commit.</li>
  </ol>