ActiveMq integration with Spring 2.5
Posted
by Tony
on Stack Overflow
See other posts from Stack Overflow
or by Tony
Published on 2010-05-25T13:56:02Z
Indexed on
2010/05/25
14:01 UTC
Read the original article
Hit count: 225
I am using ActiveMq 5.32 with Spring 2.5.5. I use pretty generic configuration, as long as I include the jmsTransactionManager in DefaultMessageListenerContainer, Spring throw an error on start up:
"Error creating bean with name 'org.springframework.jms.listener.DefaultMessageListenerContainer#0'"
Without the transactionManager attribute , this works fine, but when I add 10 messages to the message queue, a transaction exception will occur.
Part of my configurations :
<bean class="org.springframework.jms.listener.DefaultMessageListenerContainer">
<property name="connectionFactory" ref="connectionFactory" />
<property name="destination" ref="emailDestination" />
<property name="messageListener" ref="emailServiceMDP" />
<property name="transactionManager" ref="jmsTransactionManager" />
</bean>
<bean id="jmsTransactionManager" class="org.springframework.jms.connection.JmsTransactionManager">
<property name="connectionFactory" ref="connectionFactory" />
</bean>
Does this version of Spring and Activemq has some know issues in integration ? Or do I need additional libs to get jmsTransactionManager to work ?
© Stack Overflow or respective owner