Announcement Announcement Module
Collapse
No announcement yet.
JMS Target Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • JMS Target

    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

    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>
    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" 
        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>
    Last edited by ashleyvijay; Oct 30th, 2008, 08:34 AM.

  • #2
    OK I got what I wanted. Instead of using ActiveMQTopic I used ActiveMQQueue and I can c my message!!

    Comment

    Working...
    X