Posted: Fri Sep 22, 2006 12:39 am Post subject: Readind MQMessage
Newbie
Joined: 30 Aug 2006 Posts: 3
Hi,
I've a problem: when I read for example a String from a MQMessage, I consume the field.
Can I read any field without consuming it, leaving the MQMessage intact?
(I don't use JMS).
Thank you anticipately.
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
Do a search through the forum and documentation on "browse". It's a GET option that does what you're looking for _________________ Honesty is the best policy.
Insanity is the best defence.
Browse will leave the message on the queue itself.
the Seek method on the MQMessage class will "unwind" the buffer, so that the results of a readXXXX operation can be redone. _________________ I am *not* the model of the modern major general.
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