Hello, I would like to receive a message from a JMS queue and send it into an other one inside the same XA transaction. But I have the following trace in the log, while attempting to get the input message :
16:11:45,323 | INFO | tenerContainer-2 | DefaultMessageListenerContainer | .DefaultMessageListenerContainer 750 | Setup of JMS message listener invoker failed for destination 'queue/transactions-in' - trying to recover. Cause: Session's XAResource has not been enlisted in a distributed transaction. my xbean.xml looks like : <?xml version="1.0" encoding="UTF-8" ?> <beans xmlns:jms="http://servicemix.apache.org/jms/1.0" xmlns:t1="http://examples/transaction1"> <jms:consumer service="t1:t1jmsreceiver" endpoint="t1jmsreceiver" targetService="t1:t1sendtot2" targetEndpoint="t1sendtot2" destinationName="queue/transactions-in" connectionFactory="#connectionFactory" marshaler="#consumerMarshaler" synchronous="true" transacted="xa" sessionAcknowledgeMode="2"/> <jms:provider service="t1:t1sendtot2" endpoint="t1sendtot2" destinationName="queue/transactions-checkpoint" connectionFactory="#connectionFactory"/> <bean id="connectionFactory" class="org.apache.activemq.ActiveMQXAConnectionFactory"> <property name="brokerURL" value="tcp://localhost:61616" /> </bean> <bean id="consumerMarshaler" class="org.apache.servicemix.jms.endpoints.DefaultConsumerMarshaler"> <property name="mep" value="http://www.w3.org/2004/08/wsdl/in-only" /> <property name="copyProperties" value="true" /> </bean> </beans> What should I do? -- View this message in context: http://old.nabble.com/Session%27s-XAResource-has-not-been-enlisted-in-a-distributed-transaction.-tp27452437p27452437.html Sent from the ServiceMix - User mailing list archive at Nabble.com.
