You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@activemq.apache.org by csi <ch...@yahoo.com> on 2012/10/17 21:57:57 UTC
Re: problem configuring durable subscriber with Spring and Atomikos
(XA issue?)
I seem to have the same problem .. did you get any answers or figure it out?
Thanks,
Chris
--
View this message in context: http://activemq.2283324.n4.nabble.com/problem-configuring-durable-subscriber-with-Spring-and-Atomikos-XA-issue-tp4654049p4657905.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.
Re: problem configuring durable subscriber with Spring and Atomikos
(XA issue?)
Posted by csi <ch...@yahoo.com>.
Thanks, I'll give that a try.
--
View this message in context: http://activemq.2283324.n4.nabble.com/problem-configuring-durable-subscriber-with-Spring-and-Atomikos-XA-issue-tp4654049p4657907.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.
Re: problem configuring durable subscriber with Spring and Atomikos
(XA issue?)
Posted by vtapadia <va...@gmail.com>.
Just for the sake of everyone, I was able to get the issue resolved by adding
a additional bean
@Bean(initMethod = "recoverResource")
public ActiveMQResourceManager resourceManager() {
ActiveMQResourceManager resourceManager = new
ActiveMQResourceManager();
resourceManager.setConnectionFactory(connectionFactory());
resourceManager.setTransactionManager(transactionManager());
resourceManager.setResourceName(resourceManagerName);
return resourceManager;
}
Hope this helps others also in the future.
--
View this message in context: http://activemq.2283324.n4.nabble.com/problem-configuring-durable-subscriber-with-Spring-and-Atomikos-XA-issue-tp4654049p4700481.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.
Re: problem configuring durable subscriber with Spring and Atomikos
(XA issue?)
Posted by vtapadia <va...@gmail.com>.
Hi Max,
Very old issue, but I am facing the exact same issue.
The solution you have provided I guess removes the XA capabilities.
Did you get it to work?
Varesh
--
View this message in context: http://activemq.2283324.n4.nabble.com/problem-configuring-durable-subscriber-with-Spring-and-Atomikos-XA-issue-tp4654049p4700192.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.
Re: problem configuring durable subscriber with Spring and Atomikos
(XA issue?)
Posted by MaximeBelanger <ma...@uquebec.ca>.
Hi Chris,
no I never got any answers. So I ended up using the activeMq connection
factory instead of the Atomikos one, like so:
<bean id="jmsListenerConnectionFactory"
class="org.apache.activemq.ActiveMQXAConnectionFactory">
<property name="brokerURL" value="${jms.brokerURL}" />
<property name="userName" value="${jms.username}" />
<property name="password" value="${jms.password}" />
<property name="clientID" value="msgListener" />
</bean>
That solved the problem for the moment being, although I have not completed
load tests and various JMS transaction exception tests, so I'm not 100% sure
this will work...
Please share any success or failures on your behalf with this setup.
Max
--
View this message in context: http://activemq.2283324.n4.nabble.com/problem-configuring-durable-subscriber-with-Spring-and-Atomikos-XA-issue-tp4654049p4657906.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.