I have a server with MDBs, and where the client creates a temporary queue for which the server will reply on
tmpqueue = session.createTemporaryQueue();
QueueSender send = session.createSender(destinqueue);
TextMessage tm = session_.createTextMessage(msg);
tm.setJMSReplyTo(tmpqueue);
The server picks this queue, perform task and replies
Queue dest = (Queue)msg.getJMSReplyTo()
QueueSender sender = session.createSender(dest)TextMessage tm = session.createTextMessage(text)
sender.send(tm);
On 3.0.6 all was fine, but now with the 1.1 MQ ... the last line on the server fails with
01:27:13,343 ERROR [STDERR] java.lang.UnsupportedOperationException: Not constru
cted with identifyed queue. Usage of method not allowed
01:27:13,343 ERROR [STDERR] at org.jboss.mq.SpyQueueSender.send(SpyQueueSend
er.java:66)
What am I doing wrong?
Queue dest = (Queue)msg.getJMSReplyTo()
Does this step produce a null value?
Try doing
System.out.println(msg) before sending and
after receiving.
Regards,
Adrian