ActiveMq integration with Spring 2.5
- by Tony
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 ?