Results 1 to 7 of 7

Thread: spring+websphere mq+jms

  1. #1
    Join Date
    Jan 2013
    Posts
    3

    Default 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 at 03:16 AM.

  2. #2
    Join Date
    Jun 2006
    Location
    The Netherlands
    Posts
    13,695

    Default

    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.
    Marten Deinum
    Java Consultant / Pragmatist / Open Source Enthousiast / Author


    Pro Spring MVC: With Web Flow
    Conspect

    Have you read the reference guide.
    Use the [ code ] tags, young padawan

  3. #3
    Join Date
    Jan 2009
    Location
    Ukraine, Kharkov
    Posts
    740

    Default

    Hi!

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

  4. #4
    Join Date
    Jan 2009
    Location
    Ukraine, Kharkov
    Posts
    740

    Default

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

  5. #5
    Join Date
    Jan 2013
    Posts
    3

    Default

    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>

  6. #6
    Join Date
    Jan 2009
    Location
    Ukraine, Kharkov
    Posts
    740

    Default

    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

  7. #7
    Join Date
    Jan 2013
    Posts
    3

    Default

    thanks ..really awesome forum

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •