Hi all,
I'm using an MDB to process messages across a JBoss clsuter. I'm using Spring to wire my business logic and DAO code to my MDB. The spring 2.5 <tx:jta-transaction-manager/> tag worked great in JBoss 4.0.5. Now that I've upgraded to 4.2.2, it no longer works. I've stepped through the code, and the JTATransactionManager class can't find any of the default transaction managers. I've found this post on the JBoss wiki, but its no help.
http://wiki.jboss.org/wiki/JBossTransactionsWithSpring
When I view the JNDI, I have a transaction manager at the JNDI location
java:/TransactionManager (class: com.arjuna.ats.jbossatx.jta.TransactionManagerDele gate)
which should work according to the Javadoc, and it looks for it in the code. I'm getting the following exception.
If its not an instance of javax.transaction.TransactionManager, which transactionmanager should I be using? I'm using spring version 2.5.3. Oh just an FYI, the JBoss 4 doc says that the transactionmanager at java:/Transactionmanager should be an instance of javax.transaction.Transactionmanager.Code:org.springframework.jndi.TypeMismatchNamingException: Object of type [class com.arjuna.ats.jbossatx.jta.TransactionManagerDelegate] available at JNDI location [java:/TransactionManager] is not assignable to [javax.transaction.TransactionManager]
http://docs.jboss.org/jbossas/jboss4...t.html#d0e9950
Obviously that's not the case....
Thanks,
Todd


Reply With Quote