ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » IBM MQ Java / JMS » Retrive MQDLH and MQMD

Post new topic  Reply to topic
 Retrive MQDLH and MQMD « View previous topic :: View next topic » 
Author Message
jhidalgo
PostPosted: Fri Dec 12, 2008 3:01 pm    Post subject: Retrive MQDLH and MQMD Reply with quote

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
View user's profile Send private message
Vitor
PostPosted: Sat Dec 13, 2008 1:56 am    Post subject: Re: Retrive MQDLH and MQMD Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » IBM MQ Java / JMS » Retrive MQDLH and MQMD
Jump to:  



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
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.