Author |
Message |
Topic: Setting and getting the MessageID |
Yars13
Replies: 9 Views: 6025
|
Forum: IBM MQ API Support Posted: Fri Nov 05, 2004 5:51 am Subject: Setting and getting the MessageID |
For anyone interested, the code that Charlie posted is in Java, not C#, but it made me understand what i'm trying to do.
In the put message i did the following code...
System.Text.ASCIIEncodin ... |
Topic: Setting and getting the MessageID |
Yars13
Replies: 9 Views: 6025
|
Forum: IBM MQ API Support Posted: Thu Nov 04, 2004 8:58 pm Subject: Setting and getting the MessageID |
Charlie, thank you very much, that was very helpful and exactly what i was looking for.
Yars |
Topic: Setting and getting the MessageID |
Yars13
Replies: 9 Views: 6025
|
Forum: IBM MQ API Support Posted: Thu Nov 04, 2004 7:28 pm Subject: Setting and getting the MessageID |
Thanks Charlie,
Do you know why i'm getting the output of "System.Byte
System.Console.WriteLine(queueMessage.MessageId);
Also, if i wanted to set the messageID to say an integer 199, wh ... |
Topic: Setting and getting the MessageID |
Yars13
Replies: 9 Views: 6025
|
Forum: IBM MQ API Support Posted: Thu Nov 04, 2004 5:23 pm Subject: Setting and getting the MessageID |
I did set the report option to COD in the PutMessageOnQueue method.
queueMessage.Report = MQC.MQRO_COD_WITH_FULL_DATA;
I see that i use Commit where i shouldn't be, thanks.
I need to be able ... |
Topic: Setting and getting the MessageID |
Yars13
Replies: 9 Views: 6025
|
Forum: IBM MQ API Support Posted: Thu Nov 04, 2004 1:46 pm Subject: Setting and getting the MessageID |
Hi, i'm having some problems putting in my own MessageID when i put the message on the queue, then i set a COD queue and i want to retrieve that messageID. I'm sure i'm just not understanding correct ... |
Topic: Browse help |
Yars13
Replies: 4 Views: 2804
|
Forum: IBM MQ API Support Posted: Mon Oct 18, 2004 4:17 am Subject: Browse help |
Thank you, that worked.
Yars |
Topic: Browse help |
Yars13
Replies: 4 Views: 2804
|
Forum: IBM MQ API Support Posted: Fri Oct 15, 2004 10:58 am Subject: Browse help |
One more thing to add, according to the examples i've seen for java right after i say message.ClearMessage(), i should set messageID and correlationID to MQC.MQCI_NONE. The .Net manual even says that ... |
Topic: Browse help |
Yars13
Replies: 4 Views: 2804
|
Forum: IBM MQ API Support Posted: Fri Oct 15, 2004 10:45 am Subject: Browse help |
ok i lied:) I added a line of code to return the number of messages currently on the queue and it returns the correct number, but the problem i'm still having is that it's only returning the first me ... |
Topic: Browse help |
Yars13
Replies: 4 Views: 2804
|
Forum: IBM MQ API Support Posted: Fri Oct 15, 2004 10:02 am Subject: Browse help |
Hi, i'm writing code to browse a queue that i know for a fact has some messages on it. The problem is i keep getting a 2033 error, which according to IBM means that there are no messages available. ... |
Topic: Confirm on Delivery question |
Yars13
Replies: 13 Views: 7339
|
Forum: IBM MQ API Support Posted: Wed Oct 13, 2004 9:08 am Subject: Confirm on Delivery question |
Roger,
I must have missed the explanation WHEN I WAS looking at the manual, about that part not returning anything back. I appreciate your help and explanation, this is exactly what i was looking ... |
Topic: Confirm on Delivery question |
Yars13
Replies: 13 Views: 7339
|
Forum: IBM MQ API Support Posted: Wed Oct 13, 2004 5:37 am Subject: Confirm on Delivery question |
Roger,
I did read the manual, it does not contain any sample code, which is really what i'm looking for. Your first post was very helpful b/c it showed me what i was doing wrong in my code. I und ... |
Topic: Confirm on Delivery question |
Yars13
Replies: 13 Views: 7339
|
Forum: IBM MQ API Support Posted: Tue Oct 12, 2004 4:22 pm Subject: Confirm on Delivery question |
I get an output of "Received Confirmation:" that's it. With MQC.MQRO_COD_WITH_DATA, i get part of my message back, but when i put in just MQC.MQRO_COD, nothing. |
Topic: Confirm on Delivery question |
Yars13
Replies: 13 Views: 7339
|
Forum: IBM MQ API Support Posted: Tue Oct 12, 2004 4:42 am Subject: Confirm on Delivery question |
That's exactly what i'm doing. Then to print it out i say Console.WriteLine("Received Confirmation: {0}", sendmsg.ReadString(sendmsg.MessageLength));
This worked for the other two and returns not ... |
Topic: Confirm on Delivery question |
Yars13
Replies: 13 Views: 7339
|
Forum: IBM MQ API Support Posted: Mon Oct 11, 2004 12:04 pm Subject: Confirm on Delivery question |
thanks that does really help.
I got it to work with partial data and full data, but i dont get anything returned if i try to just use MQRO_COD. Is that what you meant by "report"? |
Topic: Confirm on Delivery question |
Yars13
Replies: 13 Views: 7339
|
Forum: IBM MQ API Support Posted: Mon Oct 11, 2004 9:06 am Subject: Confirm on Delivery question |
one more thing to add. I've set the ReplyToQueueName property to the same queue that i'm posting to.
Thanks |