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 » IBM MQ Installation/Configuration Support » Triggering

Post new topic  Reply to topic
 Triggering « View previous topic :: View next topic » 
Author Message
jason_e
PostPosted: Sun Aug 31, 2003 11:58 pm    Post subject: Triggering Reply with quote

Apprentice

Joined: 19 Aug 2003
Posts: 33

Hi,
I have a VB program that accepts commandline paramaters and then does some processing.

It accepts the Queue manager and queue name and then extracts all possible messages from
that queue.

I need to run this program so that it can process a message on arrival, the MQ
trigger executes the program.

Question 1
----------
Must the program browse the queue and process all the messages on the queue or can I
pass a messageId to the program via a command line paramater? If so how? (I'm using
MQ Series 5.2 on Windows 2000)

Question 2
----------
How can I pass other paramaters to the program via the command line? These would
be static paramaters that I type in when creating the trigger.

Thanks
Back to top
View user's profile Send private message
PeterPotkay
PostPosted: Mon Sep 01, 2003 12:16 pm    Post subject: Reply with quote

Poobah

Joined: 15 May 2001
Posts: 7722

The trigger monitor does not inspect the message that actually kicked off the trigger condition. The queue manager sees that a trigger condition is present, and then places the trigger message on the init queue. This queue manager generated trigger message is the extent of the info that is present to the trigger monitor, and thus the triggered application.

So the aswer to your first question is no, your triggered app could not learn the messageID of a message on the queue. Triggered apps should always be coded to process any and all messages on a queue when started.

There are 2 fields (EnvData and UserData) in the Process Defintion that allow you to specify static data that you want placed in the trigger message. The trigger monitor can then pass these fields into the triggered app via the MQTMC structure.

See chapter 14 in the Application Programing Guide for more info.
http://publibfp.boulder.ibm.com/epubs/html/csqzal09/csqzal09tfrm.htm
_________________
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 » IBM MQ Installation/Configuration Support » Triggering
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.