Hi,
I have written a simple spring+hibernate app for cloud foundry.
I have configured transaction manager following ways:
Tried -1:
<bean id="transactionManager" class="org.springframework.transaction.jta.JtaTran sactionManager">
<property name="userTransactionName">
<value>UserTransaction</value>
</property>
</bean>
Tried-2:
bean id="transactionManager" class="org.springframework.transaction.jta.JtaTran sactionManager">
<property name="transactionManagerName" value="java:/TransactionManager" />
<property name="allowCustomIsolationLevels" value="true" />
</bean>
Error:
13 Jul 2011 18:03:58 - org.apache.slide.common.Domain - INFO - Namespace configuration complete
org.springframework.beans.factory.BeanCreationExce ption: Error creating bean with name 'transactionManager' defined in class path resource [root-context.xml]: Invocation of init method failed; nested exception is org.springframework.transaction.TransactionSystemE xception: JTA UserTransaction is not available at JNDI location [UserTransaction]; nested exception is javax.naming.NameNotFoundException: Name UserTransaction is not bound in this Context
at org.springframework.beans.factory.support.Abstract AutowireCapableBeanFactory.initializeBean(Abstract AutowireCapableBeanFactory.java:1420)
Could you please tell me the how to configure transaction manager in spring+cloud foundry applications.


Reply With Quote
..