google Analytics

Thursday, October 7, 2010

JtaTransactionManager Bean

JtaTransactionManager Bean
=============================================================
 


<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="
http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans.xsd">
...
<bean id="jtaTransactionManager"
class="org.springframework.transaction.jta.JtaTransactionManager"/>
...
</beans>

By default, the JtaTransactionManager will attempt to automatically detect a UserTransaction
bound to the java:comp/UserTransaction JNDI name; if the java:comp/UserTransaction object also
implements the TransactionManager, the JtaTransactionManager will use that; if the java:comp/
UserTransaction does not implement the TransactionManager, the JtaTransactionManager will attempt
to find the TransactionManager under these JNDI names:
  1. • java:comp/UserTransaction: The default JNDI name, used by Resin 2.x, Oracle OC4J (Orion),
  2. JOnAS (JOTM), BEA WebLogic, and IBM WebSphere
  3. • java:pm/TransactionManager: JNDI name for TransactionManager in Borland Enterprise Server and Sun Application Server (Sun ONE 7 and later)
  4. • java:comp/TransactionManager: JNDI name used in Resin 3.x
  5. • java:/TransactionManager: The name used in the JBoss Application Server

===========================================================================================



jtatransactionmanager example
jtatransactionmanager spring example
jtatransactionmanager hibernate
ANish

1 comment: