hi..
I have to write a jms application using spring which sends message to websphere mq but getting invalid destination exception.
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.
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
Hi!
Wrap you code, please, with specific tag: [ CODE ] [/ CODE ] without whitespace.
Now it isn't readable, sorry...
What I see:
Your standalone application sends a message to the QmQueue, but your Spring application tries to send to the JMS_RequestResponseQueue...
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>
So, just send to this Destination instead of to the name of potential:where to make change to make it work.
And of course, inject that Bean to you msgSender BeanCode:private Destination destinationQueue; public void setDestinationQueue(Destination destinationQueue) { this.destinationQueue = destinationQueue; } ... jmsTemplate102.send(destinationQueue, new MessageCreator() { ...
thanks ..really awesome forum