activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From preben <>
Subject Setting redelivery properties on XaConnectionFactory
Date Tue, 18 Mar 2014 07:46:39 GMT

I'm working on getting activemq to play nice with our Weblogic jee server,
and have installed the Activemq rar 5.9.0 on WLS. 
Activemq is running in it's own process, and not embedded in WLS

So far it works perfect even with XA and all, but now I'm trying to
customize the redelivery policy pr. destination using camel + spring, and
I'm getting a bit stuck here. 

My spring config looks like this

<bean id="kaput" class="java.lang.RuntimeException" />

	<camelContext id="redelivery-Context"
		<jmxAgent id="agent" createConnector="false" loadStatisticsEnabled="false"
		<route id="redelivery-Route">
			<from uri="activemq:queue:demo" />
			<transacted />
			<to uri="mock:demoevent" />
			<throwException ref="kaput" />
		<route id="file-feeder-Route">
			<from uri="file://target/feed" />
			<transacted />
			<convertBodyTo type="java.lang.String" />
			<to uri="activemq:queue:demo" />


	<tx:jta-transaction-manager />
	<jee:jndi-lookup  id="jmsConnectionFactory"
jndi-name="activemq/ConnectionFactory" resource-ref="true" />
	<bean id="activemq"
		<property name="connectionFactory" ref="jmsConnectionFactory" />
		<property name="transactionManager" ref="transactionManager"/>

As far as I can see I have to configure the  Activation Specs
<>   or maybe set
the  redeliveryPolicy
on the ActiveMQXAConnectionFactory.

The question is how to do that using Camel and Spring config ?


View this message in context:
Sent from the ActiveMQ - User mailing list archive at

View raw message