Announcement Announcement Module
Collapse
No announcement yet.
spring+websphere mq+jms Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • spring+websphere mq+jms

    hi..
    I have to write a jms application using spring which sends message to websphere mq but getting invalid destination exception.
    Last edited by kamalraj; Jan 31st, 2013, 04:16 AM.

  • #2
    Post your code using [ code][/code ] tags, also post your standalone code... Trying to figure out the differences is going to be impossible if you don't have that.

    Comment


    • #3
      Hi!

      Wrap you code, please, with specific tag: [ CODE ] [/ CODE ] without whitespace.
      Now it isn't readable, sorry...

      Comment


      • #4
        What I see:
        Your standalone application sends a message to the QmQueue, but your Spring application tries to send to the JMS_RequestResponseQueue...

        Comment


        • #5
          where to make change to make it work. i have given destination queue name as QmQueue only.
          <bean id="destinationQueue" class="com.ibm.mq.jms.MQQueue">
          <property name="baseQueueName">
          <value>QmQueue</value>
          </property>
          </bean>

          Comment


          • #6
            where to make change to make it work.
            So, just send to this Destination instead of to the name of potential:
            Code:
                     private Destination destinationQueue;
            
            	   public void setDestinationQueue(Destination destinationQueue) {
            	     this.destinationQueue = destinationQueue;
            	   }
            ...
            jmsTemplate102.send(destinationQueue, 
            	                  new MessageCreator() {
            ...
            And of course, inject that Bean to you msgSender Bean

            Comment


            • #7
              thanks ..really awesome forum

              Comment

              Working...
              X