Hi,
My jms target is like below.Its works fine but I cant c anything in the message body.I want the response from my webservice to be shown in the message body.What should I configure my destination bean?? Is that I should use some other class than ActiveMQTopic to c the webservice's response message in the message body?? Would it be better to refer to jms template instead of conncetion-factory and destination?? If so please provide some example.Would apprecaite help
How should the configuration for jms template be(incase if its required to solve my problem)Code:<channel-adapter id="jmsChannel" target="jmsTarget"/> <jms-target id="jmsTarget" connection-factory="connectionFactory" destination="outTopic"/> <beans:bean id="connectionFactory" class="org.apache.activemq.ActiveMQConnectionFactory"> <beans:property name="brokerURL" value="tcp://localhost:61616" /> </beans:bean> <beans:bean id="outTopic" class="org.apache.activemq.command.ActiveMQTopic"> <beans:constructor-arg index="0" value="Hello"/> </beans:bean>
Code:<channel-adapter id="jmsChannel" target="jmsTarget"/> <jms-target id="jmsTarget" jms-template="jmsTemplate" header-mapper="headerMapper"/> <beans:bean id="connectionFactory" class="org.apache.activemq.ActiveMQConnectionFactory"> <beans:property name="brokerURL" value="tcp://localhost:61616" /> </beans:bean> <beans:bean id="jmsTemplate" class="org.springframework.jms.core.JmsTemplate"> Dont know to configure here </beans:bean>


Reply With Quote