Do I need an application server for transaction management?, really.
My question is for Spring framework. They said (Spring Documentation),
"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):
<!-- Transaction Config -->
<bean id="transactionManager"
class="org.springframework.orm.hibernate3.HibernateTransactionManager"
p:sessionFactory-ref="sessionFactory"/>
Do I need to change to (Global):
<bean id="txManager"
class="org.springframework.transaction.jta.JtaTransactionManager"/>
I order to use connection pool from Jboss. Spring documentation say :
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.