Hi all,
Sorry for spamming again but i am stuck at this point in the half way
Plz help me.
I am using 2 Session factories in my application As following. With Jtatrasactionmanger (As i need to perform DB operation on those two databases at the same time (Kind of replication of data))
This is working obsolutely fine when i deploy it on Jboss -- I am exposing Web services here.Code:<bean id="firstSessionFactory" class="org.springframework.orm.hibernate3LocalSessionFactoryBean"> . . . </bean> <bean id="secondSessionFactory" class="org.springframework.orm.hibernate3LocalSessionFactoryBean"> . . . </bean> <bean id="transactionManager" class="org.springframework.transaction.jta.JtaTransactionManager" >
But when i use testNg to unit test the application it is throwing exceptions.
If i include jta.jar then it says
otherwise i getCode:java.lang.IllegalStateException: Either 'userTransaction' or 'userTransactionName' or 'transactionManager' or 'transactionManagerName' must be specified
Any help in this regard is appreciated...Code:NoClassDefFoundError: javax/transaction/TransactionManager ......
thanks in advance..![]()


Reply With Quote