Author |
Message
|
yshakraj |
Posted: Wed Dec 05, 2012 6:59 am Post subject: LOCkand Unlock the message in the queue |
|
|
 Voyager
Joined: 14 Sep 2011 Posts: 91
|
Hi All,
Can anybody tellme how to use the below attributes in datapower MQ url
MQGMO_BROWSE_NEXT and MQGMO_LOCK
MQGMO_BROWSE_MSG_UNDER_CURSOR
I used MQGMO_BROWSE_NEXT
as below
dpmq://{$queueManager}/?ReplyQueue=<xsl:value-of select="$WAIT-QUEUE"/>;Browse=next;
thanks in advance
Thanks,
Yshak |
|
Back to top |
|
 |
fjb_saper |
Posted: Wed Dec 05, 2012 11:02 am Post subject: |
|
|
 Grand High Poobah
Joined: 18 Nov 2003 Posts: 20756 Location: LI,NY
|
explain why you would do a browse instead of a get by correlationID?  _________________ MQ & Broker admin |
|
Back to top |
|
 |
yshakraj |
Posted: Wed Dec 05, 2012 11:36 am Post subject: |
|
|
 Voyager
Joined: 14 Sep 2011 Posts: 91
|
I want to get the message in the queue with out deleting the
message from data power.also want to lock the message until
processing is done |
|
Back to top |
|
 |
fjb_saper |
Posted: Wed Dec 05, 2012 12:16 pm Post subject: |
|
|
 Grand High Poobah
Joined: 18 Nov 2003 Posts: 20756 Location: LI,NY
|
yshakraj wrote: |
I want to get the message in the queue with out deleting the
message from data power.also want to lock the message until
processing is done |
You are again not telling why you do not want to consume the message...  _________________ MQ & Broker admin |
|
Back to top |
|
 |
yshakraj |
Posted: Wed Dec 05, 2012 9:07 pm Post subject: |
|
|
 Voyager
Joined: 14 Sep 2011 Posts: 91
|
Is it not possible to browse the message rather than getting the message and deleting it form the queue.My requirement is to browse the message from the queue and process the message .also i believe by doing this we can avoid the losing of message.
I needed the corresponding numbers for
MQGMO_BROWSE_NEXT and MQGMO_LOCK and
MQGMO_BROWSE_MSG_UNDER_CURSOR
MQGMO_BROWSE_NEXT = 32
MQGMO_LOCK = 512
MQGMO_UNLOCK = 1024
MQGMO_BROWSE_MSG_UNDER_CURSOR = 2048
This is what i find from interface "MQC"
I believe to have the OR operation to use together .
Correct me if am wrong... |
|
Back to top |
|
 |
mqjeff |
Posted: Thu Dec 06, 2012 4:17 am Post subject: |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 17447
|
Yes, OR is a correct operation to use to accumulate MQGMO option values.
One can usually also use + instead of OR.
There is more than one way to consume a message from a queue without risking it being lost.
The *usual* way of doing so is to use a *transaction*, instead of using browse with lock. |
|
Back to top |
|
 |
yshakraj |
Posted: Sat Dec 08, 2012 6:20 am Post subject: |
|
|
 Voyager
Joined: 14 Sep 2011 Posts: 91
|
Hi All,
I am able to lock the message's in the queue using MQGMO Lock using 512 and also along with 32(browse next).
Tried using 1024 for UNLOCKING... did not work
Could anyone please help in UNLOCKING the message in the Queue.
Reards:-
Yshak |
|
Back to top |
|
 |
Vitor |
Posted: Sat Dec 08, 2012 8:21 am Post subject: |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
yshakraj wrote: |
My requirement is to browse the message from the queue and process the message |
That's not a requirement, that's an implementation. What's the actual requirement?
yshakraj wrote: |
i believe by doing this we can avoid the losing of message. |
I believe you're right. I also believe this is considerably more resource expensive than the normal way of avoiding the loss of a message (using a transaction) as well as requiring more extensive and complex code.
As you've discovered. _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
|