Author |
Message
|
sidhusaju |
Posted: Thu May 17, 2007 2:21 am Post subject: Locking a MQ Message |
|
|
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 |
|
 |
marcin.kasinski |
Posted: Thu May 17, 2007 2:28 am Post subject: Re: Locking a MQ Message |
|
|
Sentinel
Joined: 21 Dec 2004 Posts: 850 Location: Poland / Warsaw
|
|
Back to top |
|
 |
marcin.kasinski |
Posted: Thu May 17, 2007 2:32 am Post subject: Re: Locking a MQ Message |
|
|
Sentinel
Joined: 21 Dec 2004 Posts: 850 Location: Poland / Warsaw
|
|
Back to top |
|
 |
Vitor |
Posted: Thu May 17, 2007 2:50 am Post subject: Re: Locking a MQ Message |
|
|
 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 |
|
 |
Vitor |
Posted: Thu May 17, 2007 2:54 am Post subject: Re: Locking a MQ Message |
|
|
 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 |
|
 |
jeevan |
Posted: Thu May 17, 2007 5:08 am Post subject: Re: Locking a MQ Message |
|
|
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 |
|
 |
bruce2359 |
Posted: Thu May 17, 2007 6:23 am Post subject: |
|
|
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 |
Posted: Thu May 17, 2007 6:31 am Post subject: |
|
|
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 |
|
 |
bruce2359 |
Posted: Thu May 17, 2007 6:57 am Post subject: |
|
|
Guest
|
|
Back to top |
|
 |
tleichen |
Posted: Thu May 17, 2007 7:26 am Post subject: |
|
|
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 |
|
 |
fjb_saper |
Posted: Thu May 17, 2007 6:09 pm Post subject: |
|
|
 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 |
|
 |
|