|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
Setting message id to none in vb.net |
« View previous topic :: View next topic » |
Author |
Message
|
vijkid |
Posted: Thu Nov 20, 2003 4:03 am Post subject: Setting message id to none in vb.net |
|
|
Novice
Joined: 09 Oct 2003 Posts: 13
|
Dear Forum,
I have a problem that when I am trying to fetch message in loop i am getting the first message but after that it does not fetches. The reason indentified was that every time I have to put my message id to none before loop iterates. In java we used to do it as
myMessage.messageId = MQC.MQMI_NONE;
But in VB.ney I am not able to find the proper thing, can anybody help me with this
P.S IS there any other way by which my problem can be resolved , as I am not able to identify that why my second message is not pulled from queue
Thanks in advance
Vijay |
|
Back to top |
|
 |
PeterPotkay |
Posted: Thu Nov 20, 2003 8:08 am Post subject: |
|
|
 Poobah
Joined: 15 May 2001 Posts: 7722
|
Hmm, I have the same problem.
I tried this:
mqMsg.MessageId = MQC.MQMI_NONE
But it won't except MQC.MQMI_NONE. The error it displays is:
"A value type of String cannot be converted into a 1-dimensionla array of byte"
MQC.MQMI_NONE is a String, but mqMsg.MessageId expects a byte.
Same problem with CorrelId.
Jason, any ideas? _________________ Peter Potkay
Keep Calm and MQ On |
|
Back to top |
|
 |
JasonE |
Posted: Thu Nov 20, 2003 8:40 am Post subject: |
|
|
Grand Master
Joined: 03 Nov 2003 Posts: 1220 Location: Hursley
|
Sounds like a problem to me. Perhaps you ought to raise a PMR for it
.net is aimed to be consistent with eg the java bindings, and in those the MQMI_NONE is a byte array, so I would have expected it to be the same in .net. |
|
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
|
|
|
|