Hi,
I am using the JMS Listener namespace to configure the message listeners. My message listener uses the MessageListsnerAdapter and have defined the delegate class to handle the message with a response. I am able to receive messages but the response message fails with the error "Request message does not contain reply-to destination, and no default response destination set"
But, I have defined the response destination in the bean configuration as shown below.
I am completely clueless as how to handle sending back the response.
Thanks for any help.
Javid
Code:<jms:listener-container concurrency="${jms.listenerconcurrency.size}" <jms:listener destination="myqueue.request" ref="requestMessageConsumer" response-destination="myqueue.response"/> </jms:listener-container> <bean id="requestMessageConsumer" class="org.springframework.jms.listener.adapter.MessageListenerAdapter"> <property name="defaultListenerMethod" value="processRequest" /> <property name="messageConverter"> <bean class="org.springframework.jms.support.converter.SimpleMessageConverter" /> </property> <constructor-arg> <bean class="com.company.jms.RequestMessageConsumer"> <property name="xmlMapperImpl" ref="xmlMapperImpl" /> </bean> </constructor-arg> </bean>


Reply With Quote