AW: JMS and ReplyTo Function
Hi Jeff, on the client side: you have to define the reply queue in JNDI, lookup the queue, and then set it in the MD by message.setJMSReplyTo(replyQueue); on the server side: create an undefined queue sender by qSender = qSession.createSender(null); get the ReplyToQueue by Queue awQueue = (Queue)message.getJMSReplyTo(); and send the answer: qSender.send(awQueue,answer); Hope this helps. Barbara -Ursprungliche Nachricht- Von: Jeff A Tressler [mailto:[EMAIL PROTECTED] Gesendet: Dienstag, 30. Marz 2004 19:59 An: [EMAIL PROTECTED] Betreff: JMS and ReplyTo Function I do not know JMS but our developers are trying to use the ReplyToQueue and ReplyToQueueManager feature. I can explain how it is supposed to work using the procedural terminology. The program does a MQOpen using the reply to queue and queue manager and MQSeries figures out it need to open and generate messages to a transmission queue with the same name as the ReplyToQueueManager. The problem is they are having problems translating that into object based JMS. They are calling some Sender method passing Destination or something. Any information on how JMS handles reply messages? Instructions for managing your mailing list subscription are provided in the Listserv General Users Guide available at http://www.lsoft.com Archive: http://vm.akh-wien.ac.at/MQSeries.archive Instructions for managing your mailing list subscription are provided in the Listserv General Users Guide available at http://www.lsoft.com Archive: http://vm.akh-wien.ac.at/MQSeries.archive
JMS and ReplyTo Function
I do not know JMS but our developers are trying to use the ReplyToQueue and ReplyToQueueManager feature. I can explain how it is supposed to work using the procedural terminology. The program does a MQOpen using the reply to queue and queue manager and MQSeries figures out it need to open and generate messages to a transmission queue with the same name as the ReplyToQueueManager. The problem is they are having problems translating that into object based JMS. They are calling some Sender method passing Destination or something. Any information on how JMS handles reply messages? Instructions for managing your mailing list subscription are provided in the Listserv General Users Guide available at http://www.lsoft.com Archive: http://vm.akh-wien.ac.at/MQSeries.archive
Re: JMS and ReplyTo Function
Look at the MQ Using Java manual (page 196, SC34-6066-01). You have to use something that looks like URIs. Jeff A Tressler [EMAIL PROTECTED]To: [EMAIL PROTECTED] cc: Sent by: MQSeriesSubject: JMS and ReplyTo Function List [EMAIL PROTECTED] n.AC.AT 03/30/2004 11:58 AM Please respond to MQSeries List I do not know JMS but our developers are trying to use the ReplyToQueue and ReplyToQueueManager feature. I can explain how it is supposed to work using the procedural terminology. The program does a MQOpen using the reply to queue and queue manager and MQSeries figures out it need to open and generate messages to a transmission queue with the same name as the ReplyToQueueManager. The problem is they are having problems translating that into object based JMS. They are calling some Sender method passing Destination or something. Any information on how JMS handles reply messages? Instructions for managing your mailing list subscription are provided in the Listserv General Users Guide available at http://www.lsoft.com Archive: http://vm.akh-wien.ac.at/MQSeries.archive Instructions for managing your mailing list subscription are provided in the Listserv General Users Guide available at http://www.lsoft.com Archive: http://vm.akh-wien.ac.at/MQSeries.archive
Re: JMS and ReplyTo Function
At 09:58 AM 3/30/2004, Jeff A Tressler wrote: I do not know JMS but our developers are trying to use the ReplyToQueue and ReplyToQueueManager feature. I can explain how it is supposed to work using the procedural terminology. The program does a MQOpen using the reply to queue and queue manager and MQSeries figures out it need to open and generate messages to a transmission queue with the same name as the ReplyToQueueManager. The problem is they are having problems translating that into object based JMS. They are calling some Sender method passing Destination or something. Any information on how JMS handles reply messages? As Lawrence pointed out, you need to construct a URI for the queue, somewhat like this: outMessage.setJMSReplyTo(queue://QMGR/QUEUE.NAME); -Will Instructions for managing your mailing list subscription are provided in the Listserv General Users Guide available at http://www.lsoft.com Archive: http://vm.akh-wien.ac.at/MQSeries.archive
Re: JMS and ReplyTo Function
I found the following fragment in mqjmssrv.java: Destination des = msg.getJMSReplyTo(); String desQueueName = ((Queue)des).getQueueName(); System.out.println( server replyToQ: + desQueueName); Queue desQueue = session.createQueue(desQueueName); QueueSender qSender = session.createSender(desQueue); TextMessage msg1 = session.createTextMessage(); msg1.setText(replyString); qSender.send(msg1); which was on http://www.developer.ibm.com/tech/sampmq.html Ron --- Jeff A Tressler [EMAIL PROTECTED] wrote: I do not know JMS but our developers are trying to use the ReplyToQueue and ReplyToQueueManager feature. I can explain how it is supposed to work using the procedural terminology. The program does a MQOpen using the reply to queue and queue manager and MQSeries figures out it need to open and generate messages to a transmission queue with the same name as the ReplyToQueueManager. The problem is they are having problems translating that into object based JMS. They are calling some Sender method passing Destination or something. Any information on how JMS handles reply messages? Instructions for managing your mailing list subscription are provided in the Listserv General Users Guide available at http://www.lsoft.com Archive: http://vm.akh-wien.ac.at/MQSeries.archive __ Do you Yahoo!? Yahoo! Finance Tax Center - File online. File on time. http://taxes.yahoo.com/filing.html Instructions for managing your mailing list subscription are provided in the Listserv General Users Guide available at http://www.lsoft.com Archive: http://vm.akh-wien.ac.at/MQSeries.archive