Author |
Message |
Topic: Deleting a message you have browsed |
elomon
Replies: 29 Views: 33868
|
Forum: IBM MQ API Support Posted: Thu Mar 13, 2014 8:25 am Subject: Deleting a message you have browsed |
elomon,
It's all very well to blame the IBM documentation but I don't think that is the whole problem here. As far as I can see what you say now is 'the key' is what I told you to do less than 30 ... |
Topic: Deleting a message you have browsed |
elomon
Replies: 29 Views: 33868
|
Forum: IBM MQ API Support Posted: Thu Mar 13, 2014 7:34 am Subject: Re: Deleting a message you have browsed |
MQQueueManager mqQueueManager = new MQQueueManager(QManager);
MQQueue mqQ = new MQQueue(mqQueueManager, QDown, 8232, QManager, "", "");
... |
Topic: Deleting a message you have browsed |
elomon
Replies: 29 Views: 33868
|
Forum: IBM MQ API Support Posted: Thu Mar 13, 2014 6:31 am Subject: Deleting a message you have browsed |
There is this amazing thing - called IBM documentation.
In the Application Programming Reference part - all sorts of magic options are explained.
Thank you zpat, I wish the documentation had ... |
Topic: Deleting a message you have browsed |
elomon
Replies: 29 Views: 33868
|
Forum: IBM MQ API Support Posted: Thu Mar 13, 2014 5:40 am Subject: Deleting a message you have browsed |
I only added the input shared because MQ threw an exception that queue was not open for input when trying to delete the browsed message.
You cannot whimsically mix open-options with get-message-opti ... |
Topic: Deleting a message you have browsed |
elomon
Replies: 29 Views: 33868
|
Forum: IBM MQ API Support Posted: Thu Mar 13, 2014 4:55 am Subject: Deleting a message you have browsed |
mqGetMessageOptions.Options += MQC.MQGMO_BROWSE_NEXT;
mqGetMessageOptions.Options += MQC.MQOO_INPUT_SHARED;
That code is mixing Get and Open options.
MQOO - used for MQOPEN
MQGMO - used for ... |
Topic: Deleting a message you have browsed |
elomon
Replies: 29 Views: 33868
|
Forum: IBM MQ API Support Posted: Wed Mar 12, 2014 2:13 pm Subject: Deleting a message you have browsed |
Well, I see no reason why MQ itself should prevent you opening a queue with both MQOO_BROWSE and MQOO_INPUT_SHARED set. Perhaps it's a limitation of the C# interface but that would be surprising. Howe ... |
Topic: Deleting a message you have browsed |
elomon
Replies: 29 Views: 33868
|
Forum: IBM MQ API Support Posted: Wed Mar 12, 2014 1:53 pm Subject: Deleting a message you have browsed |
Well, I don't see how you can expect to get a message from the queue without using at least one of the MQOO_INPUT options.
What was the full set of options you used when the open failed?
I don't ... |
Topic: Deleting a message you have browsed |
elomon
Replies: 29 Views: 33868
|
Forum: IBM MQ API Support Posted: Wed Mar 12, 2014 1:49 pm Subject: Deleting a message you have browsed |
You can use input exclusive if you wish (or set this on the queue def).
You might also want to use the "lock the message under cursor" option to prevent anyone else getting it.
What do ... |
Topic: Deleting a message you have browsed |
elomon
Replies: 29 Views: 33868
|
Forum: IBM MQ API Support Posted: Wed Mar 12, 2014 1:25 pm Subject: Need some kind of input? |
Originally I did not have 'MQOO_INPUT_SHARED' and an exception was thrown that the queue was not open for input. Apparently the queue needs to be 'open for input' but 'input shared' isn't a valid inpu ... |
Topic: Deleting a message you have browsed |
elomon
Replies: 29 Views: 33868
|
Forum: IBM MQ API Support Posted: Wed Mar 12, 2014 12:56 pm Subject: Deleting a message you have browsed |
I'm building an application that browses the queue, reads a message, stores it in a database, and parses it in the database to verify business logic. If the message passes the business logic, I then n ... |