Author |
Message
|
VR RAJA REDDY |
Posted: Fri May 25, 2007 7:04 am Post subject: Problem: my MQ Messages prefixed with "MQ Client for Ja |
|
|
Newbie
Joined: 25 May 2007 Posts: 6
|
When I send the message to the remote Queue Manager my Messages are prefixed with the phrase "MQ Client for Java"...
I do NOT know why is this? I do NOT want this to happen.
Please let me know how do I get rid off this problem.
It is very urgent for me... |
|
Back to top |
|
 |
marcin.kasinski |
Posted: Fri May 25, 2007 8:15 am Post subject: Re: Problem: my MQ Messages prefixed with "MQ Client fo |
|
|
Sentinel
Joined: 21 Dec 2004 Posts: 850 Location: Poland / Warsaw
|
How do you send this messages ?
What do you mean "my Messages are prefixed" ?
Are you talking about message data.
Is it possible that this prefixed phrase is just name of application which put message ?
Please check it. _________________ Marcin |
|
Back to top |
|
 |
VR RAJA REDDY |
Posted: Fri May 25, 2007 8:47 am Post subject: |
|
|
Newbie
Joined: 25 May 2007 Posts: 6
|
Yes, I mean message data.
I think MQ system itself is doing this. I made sure I disabled tracing. Let me know if you have any clue... |
|
Back to top |
|
 |
Vitor |
Posted: Fri May 25, 2007 8:50 am Post subject: |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
VR RAJA REDDY wrote: |
Yes, I mean message data.
I think MQ system itself is doing this. I made sure I disabled tracing. Let me know if you have any clue... |
How are you viewing the message? Are you entirely sure this isn't the Application Id in the MQMD rather than in the message data itself? _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
VR RAJA REDDY |
Posted: Fri May 25, 2007 8:53 am Post subject: |
|
|
Newbie
Joined: 25 May 2007 Posts: 6
|
YES. This prefix is part of the message data |
|
Back to top |
|
 |
Vitor |
Posted: Fri May 25, 2007 9:01 am Post subject: |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
VR RAJA REDDY wrote: |
YES. This prefix is part of the message data |
NO! The prefix is NOT part of the message data!
The MQMD is prefixed by the system for it's own use, and cannot be removed from the message, except by the application ignoring the first 384 bytes (364 bytes? Length of the MQMD).
Most methods of reading the message present it separately in an appliccation to the message data. You've posted this in the Broker section of the forum, which most certainly does do this, presenting it in an MQMD tree rather than one of the message data trees. _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
VR RAJA REDDY |
Posted: Fri May 25, 2007 9:22 am Post subject: |
|
|
Newbie
Joined: 25 May 2007 Posts: 6
|
I mean when I view in the MQ tool (developed by my client Bank of New york) it displays the Message data prefixed by this text for each sent. I think the MQ system itself is prefixing like that...
You have any clue? |
|
Back to top |
|
 |
Vitor |
Posted: Fri May 25, 2007 9:27 am Post subject: |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
VR RAJA REDDY wrote: |
I mean when I view in the MQ tool (developed by my client Bank of New york) it displays the Message data prefixed by this text for each sent. I think the MQ system itself is prefixing like that...
|
I think you're right - as I said above, MQ will add an MQMD to the front of each message for it's own use and your potential benefit. This behaviour cannot be prevented by any means I'm aware of.
If you view the message with any of the supplied tools (rfhutil, MO71, etc, etc) you'll see these fields split out from the message data. Your tool needs to do the same. The format of the MQMD is fixed, and detailed in the Application Programming Reference. _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
VR RAJA REDDY |
Posted: Fri May 25, 2007 9:38 am Post subject: |
|
|
Newbie
Joined: 25 May 2007 Posts: 6
|
|
Back to top |
|
 |
marcin.kasinski |
Posted: Fri May 25, 2007 9:45 am Post subject: |
|
|
Sentinel
Joined: 21 Dec 2004 Posts: 850 Location: Poland / Warsaw
|
VR RAJA REDDY wrote: |
What is MQMD? |
Hm...
It is message header.
I think the best way is to ask about it your developer and or read about it in mq docs. _________________ Marcin |
|
Back to top |
|
 |
Vitor |
Posted: Fri May 25, 2007 10:33 am Post subject: |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
VR RAJA REDDY wrote: |
What is MQMD? |
Look in the Application Programming Reference like I suggested. It'll tell you everything you need to know. Well, the format & use anyway.  _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
VR RAJA REDDY |
Posted: Fri May 25, 2007 11:26 am Post subject: |
|
|
Newbie
Joined: 25 May 2007 Posts: 6
|
|
Back to top |
|
 |
|