jjliston
Sep 24th, 2009, 01:28 PM
I'm using spring-integration-1.0.3.RELEASE and having difficulty with the JMS outbound-channel-adapter configuration. When I configure the adapter using a connection-factory, destination-name and destination-resolver, it appears that the destination-resolver property is ignored. The destination name does not get resolved.
<outbound-channel-adapter channel="channel1" destination-name="queue1" destination-resolver="jmsDestinationResolver" connection-factory="jmsConnectionFactory" />
However, if I configure a JmsTemplate bean with these same properties and then configure configure the adapter with the template, then the destination name does get resolved.
<outbound-channel-adapter channel="channel1" jms-template="queue1Template" />
<bean id="queue1Template" class="org.springframework.jms.core.JmsTemplate">
<property name="defaultDestinationName" value="queue1" />
<property name="destinationResolver" ref="jmsDestinationResolver" />
<property name="connectionFactory" ref="jmsConnectionFactory" />
</bean>
Shouldn't these two configurations have the same behavior?
<outbound-channel-adapter channel="channel1" destination-name="queue1" destination-resolver="jmsDestinationResolver" connection-factory="jmsConnectionFactory" />
However, if I configure a JmsTemplate bean with these same properties and then configure configure the adapter with the template, then the destination name does get resolved.
<outbound-channel-adapter channel="channel1" jms-template="queue1Template" />
<bean id="queue1Template" class="org.springframework.jms.core.JmsTemplate">
<property name="defaultDestinationName" value="queue1" />
<property name="destinationResolver" ref="jmsDestinationResolver" />
<property name="connectionFactory" ref="jmsConnectionFactory" />
</bean>
Shouldn't these two configurations have the same behavior?