Author |
Message
|
qwerty123 |
Posted: Mon Mar 26, 2007 12:16 pm Post subject: JMS and message type "Reply" |
|
|
Novice
Joined: 09 Oct 2003 Posts: 23
|
Hi folks,
I am fairly new to the MQ / JMS world and would like to know if there is way to set the underlying MQSeries message type to "Reply" (MQMT_REPLY) using the JMS API ?
Would appreciate any help.
Navneet |
|
Back to top |
|
 |
dhanaraj |
Posted: Mon Mar 26, 2007 2:22 pm Post subject: |
|
|
 Voyager
Joined: 10 Aug 2004 Posts: 92
|
public String ReplyToQueueName {get; set;}
MQC.MQMT_REPLY and MQC.MQMT_REPORT messages. The application should sent one of this Message type |
|
Back to top |
|
 |
qwerty123 |
Posted: Mon Mar 26, 2007 2:29 pm Post subject: |
|
|
Novice
Joined: 09 Oct 2003 Posts: 23
|
Thanks Dhanraj,
I am still not clear, still trying to understand how a JMS responding application can set this value in the MQ header ?
Are you saying this will be done on the application that sends the request message in the first place using the constants you specified in your reply.
Thanks once again
Navneet |
|
Back to top |
|
 |
fjb_saper |
Posted: Mon Mar 26, 2007 3:49 pm Post subject: Re: JMS and message type "Reply" |
|
|
 Grand High Poobah
Joined: 18 Nov 2003 Posts: 20756 Location: LI,NY
|
qwerty123 wrote: |
Hi folks,
I am fairly new to the MQ / JMS world and would like to know if there is way to set the underlying MQSeries message type to "Reply" (MQMT_REPLY) using the JMS API ?
Would appreciate any help.
Navneet |
Just set the JMSReplyTo(Destination) and it is all taken care of under the covers for you.  _________________ MQ & Broker admin |
|
Back to top |
|
 |
jefflowrey |
Posted: Mon Mar 26, 2007 3:56 pm Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
Let's be clear on the answers, qwerty123 is asking about sending the reply, not the request.
I remember some kind of special purpose Producer or a different method - but it seems my memory is very bad. _________________ I am *not* the model of the modern major general. |
|
Back to top |
|
 |
qwerty123 |
Posted: Mon Mar 26, 2007 4:15 pm Post subject: |
|
|
Novice
Joined: 09 Oct 2003 Posts: 23
|
Hey guys,
Thanks for your help, I figured it out. Here's how you do it for IBM's MQSeries -
<<<
jmsMsg.setIntProperty("JMS_IBM_MsgType", MQC.MQMT_REPLY);
>>>
Thanks
Navneet |
|
Back to top |
|
 |
|