ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » WebSphere DataPower » LOCkand Unlock the message in the queue

Post new topic  Reply to topic
 LOCkand Unlock the message in the queue « View previous topic :: View next topic » 
Author Message
yshakraj
PostPosted: Wed Dec 05, 2012 6:59 am    Post subject: LOCkand Unlock the message in the queue Reply with quote

Voyager

Joined: 14 Sep 2011
Posts: 90

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
View user's profile Send private message
fjb_saper
PostPosted: Wed Dec 05, 2012 11:02 am    Post subject: Reply with quote

Grand High Poobah

Joined: 18 Nov 2003
Posts: 20695
Location: LI,NY

explain why you would do a browse instead of a get by correlationID?
_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
yshakraj
PostPosted: Wed Dec 05, 2012 11:36 am    Post subject: Reply with quote

Voyager

Joined: 14 Sep 2011
Posts: 90

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
View user's profile Send private message
fjb_saper
PostPosted: Wed Dec 05, 2012 12:16 pm    Post subject: Reply with quote

Grand High Poobah

Joined: 18 Nov 2003
Posts: 20695
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
View user's profile Send private message Send e-mail
yshakraj
PostPosted: Wed Dec 05, 2012 9:07 pm    Post subject: Reply with quote

Voyager

Joined: 14 Sep 2011
Posts: 90

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
View user's profile Send private message
mqjeff
PostPosted: Thu Dec 06, 2012 4:17 am    Post subject: Reply with quote

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
View user's profile Send private message
yshakraj
PostPosted: Sat Dec 08, 2012 6:20 am    Post subject: Reply with quote

Voyager

Joined: 14 Sep 2011
Posts: 90

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
View user's profile Send private message
Vitor
PostPosted: Sat Dec 08, 2012 8:21 am    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » WebSphere DataPower » LOCkand Unlock the message in the queue
Jump to:  



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
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.