activemq-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From benjamine <nidhinbenja...@gmail.com>
Subject Getting failure with XATransaction
Date Wed, 17 Jun 2009 15:30:28 GMT

Hi All,

   I am using ActiveMQ in Mule.When I am using XA-transaction with ActiveMQ
i am getting the following error.

		<amq:broker id="AMQCoreBroker" useJmx="false" persistent="false">
			<amq:managementContext>
				<amq:managementContext createConnector="false" />
			</amq:managementContext>
			<amq:transportConnectors>
				<amq:transportConnector uri="tcp://localhost:61617" />
			</amq:transportConnectors>
		</amq:broker>
		<amq:xaConnectionFactory id="jmsFactoryCore"
			brokerURL="ssl://localhost:61617" />

<jms:activemq-xa-connector name="AMQCoreConnector"
		brokerURL="ssl://localhost:61616" connectionFactory-ref="jmsFactoryCore"
		disableTemporaryReplyToDestinations="true" durable="true" 
                persistentDelivery="true"
createMultipleTransactedReceivers="false" 
                numberOfConsumers="1" maxRedelivery="1"/>


this is jms inbound

				<jms:inbound-endpoint address="jms://FMR.DELIVERY.WHQ"
					connector-ref="AMQCoreConnector">
					<transformers>
						<transformer ref="JmsMessageToObject" />
						<transformer ref="JaxbXmlToObject" />
					</transformers>
					<xa-transaction action="ALWAYS_BEGIN" timeout="30000"/>   
				</jms:inbound-endpoint>

When i am running this i am getting the following exception,

06-17 10:29:54 [AMQOfficeConnector.01.dispatcher.3] ERROR
(org.mule.AbstractExceptionListener:logException)     - Caught exception in
Exception Strategy: Session's XAResource has not been enlisted in a
distributed transaction.
javax.jms.JMSException: Session's XAResource has not been enlisted in a
distributed transaction.
	at
org.apache.activemq.ActiveMQXASession.doStartTransaction(ActiveMQXASession.java:109)
	at org.apache.activemq.ActiveMQSession.send(ActiveMQSession.java:1601)
	at
org.apache.activemq.ActiveMQMessageProducer.send(ActiveMQMessageProducer.java:227)
	at
org.apache.activemq.ActiveMQMessageProducerSupport.send(ActiveMQMessageProducerSupport.java:269)
	at org.mule.transport.jms.Jms102bSupport.send(Jms102bSupport.java:256)
	at
org.mule.transport.jms.JmsMessageDispatcher.dispatchMessage(JmsMessageDispatcher.java:223)
	at
org.mule.transport.jms.JmsMessageDispatcher.doDispatch(JmsMessageDispatcher.java:73)
	at
org.mule.transport.AbstractMessageDispatcher$Worker.run(AbstractMessageDispatcher.java:262)
	at org.mule.work.WorkerContext.run(WorkerContext.java:310)
	at
edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1061)
	at
edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:575)
	at java.lang.Thread.run(Thread.java:619)

I appreciate if you can let me know if i am missing anything in the
configuration. First time i am configuring XA transaction.


-- 
View this message in context: http://www.nabble.com/Getting-failure-with-XATransaction-tp24076154p24076154.html
Sent from the ActiveMQ - Dev mailing list archive at Nabble.com.


Mime
View raw message