Smart questions
Smart answers
Smart people
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Member Login

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips now!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

Join Tek-Tips
*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

LINK TO THIS FORUM!

Add Stickiness To Your Site By Linking To This Professionally Managed Technical Forum.
Just copy and paste the
code below into your site.

Partner With Us!

"Best Of Breed" Forums Add Stickiness To Your Site
Partner Button
(Download This Button Today!)

Feedback

"...with companys cutting back on training, lack of true support by makers of software, the forums are a great tool in your cyber-toolbox...."

Geography

Where in the world do Tek-Tips members come from?

I switched my trigger event to first, but still get a process for all

mqadm (MIS)
7 Jan 04 12:40
I have a queue that fires a process when a message hits.  I originally set it up to fire the trigger for all messages.  I end up with allot of extra jobs being kicked off.  I switched the Trigger type to *FIRST, ended the queue manager, and restarted the queue manager.  I am still finding that a process is being kicked off for every message that hits the queue.

I am running on an AS400.

mqonnet (Programmer)
8 Jan 04 12:02
If all the conditions for triggering are met, then triggermon would trigger again and again.
So the question is why is this happening.  Check to see who is resetting the trigger conditions.  Because without that happening you should not get any triggering happening.

Cheers
KK

tlogan (Programmer)
12 Jan 04 9:34
I've not worked with AS400, but I have worked a lot on 390/zOS mainframe, so I'm not familiar with the monitoring tools avavilable to you...but here's something we found when we had the same the same problem...

When the first message hits, the trigger mon fires. If your process reads the message AND DELETES IT, and is running to completion PRIOR to the arrival of the next message, then the next message is the FIRST and will fire the trigger monitor.

Also, MQ does a wierd thing to compensate for network outages and incorrect applications names in the process def, etc. that it thinks might cause queues not to be opened and read. It puts ANOTHER message on the trigger queue after the time set in TriggerInterval. If that time is set too low, it is VERY possible that FIRST will act just like EVERY, because even though you process the real FIRST message properly, the time set in Trigger Interval has passed so another message is created and fires the process again.

You probably need to get whatever AS400 system monitoring tools are available and watch the entire message flow from arrival to process completion to check the throughput times.

Make sure you are not putting a message back on the trigger queue. (You'd be surprised!) Also, if your process was designed to only process one message, that you make sure ti modify the process to loop through the queue to process any messages that may have arrived AFTER the process was started, or you'll be leaving unread messages on the queue.   

Finally, I'd suggest that if you don't have a hard copy of the IBM books, go to the IBM website, download BOOKMANAGER and the soft copy of the IBM MQ Series reference books. They're free!

Hope this helps.
TLogan

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members!

Back To Forum

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close