|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
Trigger type = F |
« View previous topic :: View next topic » |
Author |
Message
|
giuly020277 |
Posted: Mon Mar 09, 2009 4:58 am Post subject: Trigger type = F |
|
|
 Centurion
Joined: 07 Aug 2007 Posts: 146 Location: Florence,Italy
|
Hello,
on zos i have a locale queue with trigger = First.
trigger let start a transaction called DALL.
On queue many application put messages (both batch and online).
At the beginning a batch put 1000 messages on queue.
Trigger starts DALL who get messages (one at time). In this while...many online application put messages that are stored on queue.
In this scenario i was waiting to see ONLY ONE DALL that get all messages. Instead i have seen that more than one dall is runned. WHY?
I have trigger = FIRST.  |
|
Back to top |
|
 |
giuly020277 |
Posted: Mon Mar 09, 2009 5:10 am Post subject: |
|
|
 Centurion
Joined: 07 Aug 2007 Posts: 146 Location: Florence,Italy
|
it is possibile a scenario like that :
- 1 dall is running and is getting all messages /who have priority =0) ;
- in the while a messages with priority =4 come on queue .
What happen?It's possibile dall stop and start another one to get this message with highest priority?  |
|
Back to top |
|
 |
Vitor |
Posted: Mon Mar 09, 2009 5:34 am Post subject: |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
giuly020277 wrote: |
It's possibile dall stop and start another one to get this message with highest priority?  |
The application should be given the higher priority message the next time it reads the queue; one of the reasons message affinity is not a good idea (because it would break up the chunk of 1000 messages in your example). _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
Vitor |
Posted: Mon Mar 09, 2009 5:35 am Post subject: |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
Of course, if you've got some funky coding in your application it could do anything.....  _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
PeterPotkay |
Posted: Thu Mar 12, 2009 7:51 pm Post subject: |
|
|
 Poobah
Joined: 15 May 2001 Posts: 7722
|
Because your app is reading one message and closing the queue. Since there are more than 0 messages on the Trigger On First queue, another trigger message is generated. This happens as soon as the q is closed. The 2nd instance is probably already trigered and running before the first instance finishes ending after closing the q. _________________ Peter Potkay
Keep Calm and MQ On |
|
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
|
|
|
|