=============================================================
<?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:
- • java:comp/UserTransaction: The default JNDI name, used by Resin 2.x, Oracle OC4J (Orion),
- JOnAS (JOTM), BEA WebLogic, and IBM WebSphere
- • java:pm/TransactionManager: JNDI name for TransactionManager in Borland Enterprise Server and Sun Application Server (Sun ONE 7 and later)
- • java:comp/TransactionManager: JNDI name used in Resin 3.x
- • java:/TransactionManager: The name used in the JBoss Application Server
===========================================================================================
jtatransactionmanager example
jtatransactionmanager spring example
jtatransactionmanager hibernate
ANish
Interesting Article
ReplyDeleteEJB 3 Online Training | Java Online Training
Java Online Training from India | Core Java Online Training