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 » Mainframe, CICS, TXSeries » Trigger type = F

Post new topic  Reply to topic
 Trigger type = F « View previous topic :: View next topic » 
Author Message
giuly020277
PostPosted: Mon Mar 09, 2009 4:58 am    Post subject: Trigger type = F Reply with quote

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
View user's profile Send private message
giuly020277
PostPosted: Mon Mar 09, 2009 5:10 am    Post subject: Reply with quote

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
View user's profile Send private message
Vitor
PostPosted: Mon Mar 09, 2009 5:34 am    Post subject: Reply with quote

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
View user's profile Send private message
Vitor
PostPosted: Mon Mar 09, 2009 5:35 am    Post subject: Reply with quote

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
View user's profile Send private message
PeterPotkay
PostPosted: Thu Mar 12, 2009 7:51 pm    Post subject: Reply with quote

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
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 » Mainframe, CICS, TXSeries » Trigger type = F
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.