Hi guys,
I'm trying to syncronize Spring DAO's transaction and ServiceMix components,
everything works fine, i'm using a custom jboss-deployer where i load an jbi
container from a Spring Xml. The version from ServiceMix is 3.1. My problem
is that when an Exception occurs during the processing of an exchange
(onMessageExchange) from a component, the spring transaction is commited in
the database.
To control the transacion manager i configure this in the container:
<bean id="transactionManager"
class="org.springframework.jndi.JndiObjectFactoryBean">
<property name="jndiName">
<value>java:/TransactionManager</value>
</property>
</bean>
<sm:container id="jbi" rootDir="./data/ServiceMix" useShutdownHook="false"
transactionManager="#transactionManager" autoEnlistInTransaction="true"
monitorInstallationDirectory="false" createJmxConnector="false"
useMBeanServer="true" createMBeanServer="false">
<sm:flows>
<sm:jcaFlow jmsURL="tcp://localhost:61616" />
<sm:sedaFlow />
</sm:flows>
And this in my app:
<bean id="transactionManager"
class="org.springframework.transaction.jta.JtaTransactionManager">
<property name="transactionManagerName"
value="java:/TransactionManager"/>
<property name="userTransactionName" value="UserTransaction"/>
</bean>
<bean name="transactionProxy"
class="org.springframework.transaction.interceptor.TransactionInterceptor">
<property name="transactionManager"><ref
local="transactionManager"/></property>
<property name="transactionAttributes">
<props>
<prop key="*">PROPAGATION_REQUIRED</prop>
</props>
</property>
</bean>
Someone knows what i doing wrong??
--
View this message in context:
http://www.nabble.com/ServiceMix-transaction-sync-between-spring%2C-components-and-Jboss-tf3475627s12049.html#a9701134
Sent from the ServiceMix - User mailing list archive at Nabble.com.