1 Reply Latest reply on Nov 11, 2007 12:12 PM by alesj

    Jboss portal and Spring JTA TransactionManager is not availa

    vijaychhipa

      Hello

      In my application-context.xml I configure the jtaTransactionManager like this


      <bean id="transactionManager" class="org.springframework.transaction.jta.JtaTransactionManager">
       <property name="transactionManagerName">
       <value>jboss:service=TransactionManager</value>
       </property>
       </bean>
      
      


      However I keep getting this error:

      JTA TransactionManager is not available at JNDI location [jboss:service=TransactionManager]


      I checked if I am loading any other jta.jar in my ear file, and I am not.
      I am using Jboss 4.0.5 GA, JBoss portal 2.6, Spring 2.0.x

      I have tried other combinations mentioned here
      http://jboss.org/index.html?module=bb&op=viewtopic&t=69587

      All I need is a way to tell Spring that there is a JTA transaction maneger instance running in JBoss so it need to find that in the JNDI

      According to Spring doc it is supposed to be super easy using the above XML, but I am missing something, either the property name is not right or the value.

      Or, is there another way to configure this?

      Any help is highly appreciated.