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 » General IBM MQ Support » Locking a MQ Message

Post new topic  Reply to topic
 Locking a MQ Message « View previous topic :: View next topic » 
Author Message
sidhusaju
PostPosted: Thu May 17, 2007 2:21 am    Post subject: Locking a MQ Message Reply with quote

Apprentice

Joined: 03 May 2007
Posts: 27

Hi All,

Thanks for your great support for me in developing my application.

I know I am troubling all of you too much.(only becoz I am very much new to IBM MQ series.)


With your permission(I hope so) I want to ask you some more questions.



As per my requirement, I want to lock my message so that
Only one application can process(I mean get.)the same message for processing.I found some property called MQGMO_LOCK and UNLOCK etc:

Can you help me , so that I can effectively LOCK the messsage for processing only by one application.For the second message, when it tries to process the same message it should sent a message.(or it should
process with the other message in the Queue).My application is Vb.net



Regards,



Sajayan
Back to top
View user's profile Send private message
marcin.kasinski
PostPosted: Thu May 17, 2007 2:28 am    Post subject: Re: Locking a MQ Message Reply with quote

Sentinel

Joined: 21 Dec 2004
Posts: 850
Location: Poland / Warsaw

Hm,

"Locking mesages" you have out of the box.

When one application gets message there is no chance to get the same messages by other app.

Have you red this:

www.redbooks.ibm.com/redpapers/pdfs/redp0021.pdf
_________________
Marcin
Back to top
View user's profile Send private message Visit poster's website
marcin.kasinski
PostPosted: Thu May 17, 2007 2:32 am    Post subject: Re: Locking a MQ Message Reply with quote

Sentinel

Joined: 21 Dec 2004
Posts: 850
Location: Poland / Warsaw

Here you have description of MQGMO_LOCK and MQGMO_UNLOCK.
It is not lock you asked.

MQGMO_LOCK
http://publib.boulder.ibm.com/infocenter/wmqv6/v6r0/index.jsp?topic=/com.ibm.mq.csqzaw.doc/uj18340_.htm

MQGMO_UNLOCK
http://publib.boulder.ibm.com/infocenter/wmqv6/v6r0/index.jsp?topic=/com.ibm.mq.csqzaw.doc/uj18430_.htm
_________________
Marcin
Back to top
View user's profile Send private message Visit poster's website
Vitor
PostPosted: Thu May 17, 2007 2:50 am    Post subject: Re: Locking a MQ Message Reply with quote

Grand High Poobah

Joined: 11 Nov 2005
Posts: 26093
Location: Texas, USA

sidhusaju wrote:
As per my requirement, I want to lock my message so that
Only one application can process(I mean get.)the same message for processing.I found some property called MQGMO_LOCK and UNLOCK etc:


This is the default behaviour for a read. The lock options refer to browsing, which you shouldn't be using in this context.
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
Vitor
PostPosted: Thu May 17, 2007 2:54 am    Post subject: Re: Locking a MQ Message Reply with quote

Grand High Poobah

Joined: 11 Nov 2005
Posts: 26093
Location: Texas, USA

sidhusaju wrote:
I know I am troubling all of you too much.(only becoz I am very much new to IBM MQ series.)


This is also a very bad way to learn MQSeries. We're not a training resource, and you should seek some proper, supported training. MQ is not a straightforward piece of software & it will be a much more effective use of your time to get some qualitative training.

This is not to discredit the value of experiementation and exploration, but it will take you a lot longer (and annoy us a lot more! ) if you keep with the list of basic questions. Better by far to spend some time with the manuals, better still some formal training, then leverage this knowledge with attempts to code & posts to this board when you get stuck.

There's a sticky in the forum "Asking questions the smart way" I point people towards in your position. It's not as patronising as it sounds and contains valuable tips.
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
jeevan
PostPosted: Thu May 17, 2007 5:08 am    Post subject: Re: Locking a MQ Message Reply with quote

Grand Master

Joined: 12 Nov 2005
Posts: 1432

Vitor wrote:
sidhusaju wrote:
I know I am troubling all of you too much.(only becoz I am very much new to IBM MQ series.)


This is also a very bad way to learn MQSeries. We're not a training resource, and you should seek some proper, supported training. MQ is not a straightforward piece of software & it will be a much more effective use of your time to get some qualitative training.
.


I have not tried myself, but there are CBT (CDs) for learning mq series - both admin and programming. That would probably be better option for a full time job holder if the employer is not willing to pay /release from work.
Back to top
View user's profile Send private message
bruce2359
PostPosted: Thu May 17, 2007 6:23 am    Post subject: Reply with quote

Guest




Two manuals to read before attempting to write MQ applications: MQ V6 Application Programming Reference, and MQ 6 Application Programming Guide. These include coding examples. Sample programs are supplied with the MQ product installation.
Back to top
marcin.kasinski
PostPosted: Thu May 17, 2007 6:31 am    Post subject: Reply with quote

Sentinel

Joined: 21 Dec 2004
Posts: 850
Location: Poland / Warsaw

bruce2359 wrote:
Two manuals to read before attempting to write MQ applications: MQ V6 Application Programming Reference, and MQ 6 Application Programming Guide. These include coding examples. Sample programs are supplied with the MQ product installation.



I think before that MQSeries Primer would be helpful.
It was my first doc.
_________________
Marcin
Back to top
View user's profile Send private message Visit poster's website
bruce2359
PostPosted: Thu May 17, 2007 6:57 am    Post subject: Reply with quote

Guest




And redbook: WebSphere MQ V6 Fundamentals, SG24-7128-00, downloadable at: http://www.redbooks.ibm.com/abstracts/sg247128.html?Open
Back to top
tleichen
PostPosted: Thu May 17, 2007 7:26 am    Post subject: Reply with quote

Yatiri

Joined: 11 Apr 2005
Posts: 663
Location: Center of the USA

Uhhh yeah, you better first learn the basics.
_________________
IBM Certified MQSeries Specialist
IBM Certified MQSeries Developer
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Thu May 17, 2007 6:09 pm    Post subject: Reply with quote

Grand High Poobah

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

bruce2359 wrote:
Two manuals to read before attempting to write MQ applications: MQ V6 Application Programming Reference, and MQ 6 Application Programming Guide. These include coding examples. Sample programs are supplied with the MQ product installation.


And I'd generously add the "Using Java" manual to the lot. (Both for java base and JMS). Now if you need JMS basics I'm sure there are enough tutorials on the Web...
_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » General IBM MQ Support » Locking a MQ Message
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.