Author |
Message
|
meetgaurav |
Posted: Mon Oct 20, 2008 10:43 pm Post subject: conversion C to Java |
|
|
Voyager
Joined: 08 Sep 2008 Posts: 94
|
MsgDesc.MsgType = MQMT_REPLY // C program
message.setJMSType("MQMT_REPLY"); // Java
Both are SAME
Could you please confirm.. |
|
Back to top |
|
 |
David.Partridge |
Posted: Mon Oct 20, 2008 11:55 pm Post subject: |
|
|
 Master
Joined: 28 Jun 2001 Posts: 249
|
I *think* that the correct incantation is:
message.setIntProperty("JMS_IBM_MsgType", MQC.MQMT_REPLY); _________________ Cheers,
David C. Partridge |
|
Back to top |
|
 |
meetgaurav |
Posted: Tue Oct 21, 2008 12:21 am Post subject: |
|
|
Voyager
Joined: 08 Sep 2008 Posts: 94
|
U R rite David, Yes this works Fine....  |
|
Back to top |
|
 |
fjb_saper |
Posted: Tue Oct 21, 2008 1:31 am Post subject: |
|
|
 Grand High Poobah
Joined: 18 Nov 2003 Posts: 20756 Location: LI,NY
|
Usually I never touch this property in JMS. Setting the JMSReplyTo Destination usually does that for me;  _________________ MQ & Broker admin |
|
Back to top |
|
 |
meetgaurav |
Posted: Wed Oct 22, 2008 8:31 am Post subject: |
|
|
Voyager
Joined: 08 Sep 2008 Posts: 94
|
If I use message.getJMSReplyTo(). Then no need to write the secondline rite???
message.setIntProperty("JMS_IBM_MsgType", MQC.MQMT_REPLY); |
|
Back to top |
|
 |
fjb_saper |
Posted: Wed Oct 22, 2008 10:19 am Post subject: |
|
|
 Grand High Poobah
Joined: 18 Nov 2003 Posts: 20756 Location: LI,NY
|
meetgaurav wrote: |
If I use message.getJMSReplyTo(). Then no need to write the secondline rite???
message.setIntProperty("JMS_IBM_MsgType", MQC.MQMT_REPLY); |
No you need to use :
message.setJMSReplyTo(myreplytoDestination);
Have fun  _________________ MQ & Broker admin |
|
Back to top |
|
 |
|