Announcement Announcement Module
No announcement yet.
tx:jta-transaction-manager and JBoss 4.2.2 MDB Page Title Module
Move Remove Collapse
Conversation Detail Module
  • Filter
  • Time
  • Show
Clear All
new posts

  • tx:jta-transaction-manager and JBoss 4.2.2 MDB

    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.

    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.

    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]
    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.

    Obviously that's not the case....

    Last edited by tnine; Apr 18th, 2008, 12:59 AM.

  • #2
    I would expect a classloading issue. Make sure that there is only 1 jta.jar in your classpath. Actually it should even not be available in your (web) app as it comes provided by JBoss.