|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
Retrive MQDLH and MQMD |
« View previous topic :: View next topic » |
Author |
Message
|
jhidalgo |
Posted: Fri Dec 12, 2008 3:01 pm Post subject: Retrive MQDLH and MQMD |
|
|
 Disciple
Joined: 26 Mar 2008 Posts: 161
|
I want to read the DLH and the normal header from a message in the DLQ, but just after the DLH I get the data of the message.
Basically what I do is:
q.get(msg,qmo);
version= msg.readInt();
reason= msg.readInt();
and so forth, with all the fields of the DLH, but how can I get the normal header with the other fields like the ReplyToQ, ReplyToQmgr, etc.. ?
thanks |
|
Back to top |
|
 |
Vitor |
Posted: Sat Dec 13, 2008 1:56 am Post subject: Re: Retrive MQDLH and MQMD |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
jhidalgo wrote: |
how can I get the normal header with the other fields like the ReplyToQ, ReplyToQmgr, etc.. ?
|
Same as you would for any message on any queue. The MQMD is never part of the message and always separate. In real languages it's returned separately, in JMS the values are returned in the JMS headers (as I feel the ground grow more sandy under my feet) and in native Java it's returned in some weird, native Java-esque way that someone will explain to you in a moment!
Basically, use the methods in the manual to read the header. There's nothing special about the DLQ except it's used for a specific purpose by the queue manager, and the queue manager inserts more data in a message sent there.  _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
|
|
 |
|
Page 1 of 1 |
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|
|
|