-
Mar 20th, 2006, 12:39 PM
#1
Websphere problem invoking ejbs
Hello,
I have the following transaction synchronization problem in WebSphere 6,
when invoking an ejb with transaction required attribute from a transactional spring service.
I get the following exception:
##################################
java.lang.IllegalStateException: No transaction associated with this thread
at com.ibm.ws.Transaction.JTA.TranManagerImpl.commit( TranManagerImpl.java(Compiled Code))
at com.ibm.ws.Transaction.JTA.TranManagerSet.commit(T ranManagerSet.java(Compiled Code))
at org.springframework.transaction.jta.UserTransactio nAdapter.commit(UserTransactionAdapter.java:74)
at org.springframework.transaction.jta.JtaTransaction Manager.doCommit(JtaTransactionManager.java:787)
at org.springframework.transaction.support.AbstractPl atformTransactionManager.processCommit(AbstractPla tformTransactionManager.java:500)
at org.springframework.transaction.support.AbstractPl atformTransactionManager.commit(AbstractPlatformTr ansactionManager.java:473)
at org.springframework.transaction.interceptor.Transa ctionAspectSupport.doCommitTransactionAfterReturni ng(TransactionAspectSupport.java:266)
at org.springframework.transaction.interceptor.Transa ctionInterceptor.invoke(TransactionInterceptor.jav a:106)
at org.springframework.aop.framework.ReflectiveMethod Invocation.proceed(ReflectiveMethodInvocation.java :170)
at org.springframework.aop.framework.JdkDynamicAopPro xy.invoke(JdkDynamicAopProxy.java:176)
#####################################
If I start the transaction by first going through another ejb, everything is fine,
i.e. spring participates with this transaction and properly propagates it to
all other ejb calls.
Has anyone else seen problems in mapping Spring transactions onto
Websphere CMT transactions?
I use the following Spring transaction configuration:
<bean id="transactionManager" class="org.springframework.transaction.jta.JtaTran sactionManager">
<property name="userTransactionName">
<null />
</property>
<property name="transactionManager">
<bean class="org.springframework.transaction.jta.WebSphe reTransactionManagerFactoryBean" />
</property>
</bean>
Thanks for your help,
Michael
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules