|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
Problem in MQGET with signaling |
« View previous topic :: View next topic » |
Author |
Message
|
##mqguy## |
Posted: Wed Dec 03, 2003 2:16 am Post subject: Problem in MQGET with signaling |
|
|
Novice
Joined: 22 Oct 2003 Posts: 10
|
In my application i am using MQGMO_SET_SIGNAL during an MQGET.And i am getting MQRC_SIGNAL1_ERROR as return code. In that case, what may be the reason for an invalid address in Signal1 field. Or why it can't point to a read-only storage. Is there any way to avoid this return code ? |
|
Back to top |
|
 |
jefflowrey |
Posted: Wed Dec 03, 2003 5:42 am Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
Signalling is unsupported on a lot of platforms, and should be avoided.
Use a Get with timed wait in a loop, instead. _________________ I am *not* the model of the modern major general. |
|
Back to top |
|
 |
##mqguy## |
Posted: Wed Dec 03, 2003 6:14 am Post subject: |
|
|
Novice
Joined: 22 Oct 2003 Posts: 10
|
Whether by using this wait option, can the wait interval be interuppted. For eg: my wait interval is 10 secs and once any message is available in the queue at 6th sec, then whether that wait interval will be cancelled ?? |
|
Back to top |
|
 |
jefflowrey |
Posted: Wed Dec 03, 2003 6:27 am Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
##mqguy## wrote: |
Whether by using this wait option, can the wait interval be interuppted. For eg: my wait interval is 10 secs and once any message is available in the queue at 6th sec, then whether that wait interval will be cancelled ?? |
Short answer, Yes.
Longer answer, The Get will return to your application as soon as a message is available, or when the interval has expired. You will also want to specify the FAIL IF QUIESCING option on the get. _________________ I am *not* the model of the modern major general. |
|
Back to top |
|
 |
bduncan |
Posted: Thu Dec 04, 2003 5:51 pm Post subject: |
|
|
Padawan
Joined: 11 Apr 2001 Posts: 1554 Location: Silicon Valley
|
Have you considered using triggering so that your application will only be launched once a message has arrived? _________________ Brandon Duncan
IBM Certified MQSeries Specialist
MQSeries.net forum moderator |
|
Back to top |
|
 |
|
|
 |
|
Page 1 of 1 |
|
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
|
|
|
|