|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
Triggering |
« View previous topic :: View next topic » |
Author |
Message
|
vandana |
Posted: Sun Jan 13, 2002 10:52 pm Post subject: |
|
|
Acolyte
Joined: 01 Dec 2001 Posts: 74
|
Hi,
I'm working on MQSeries 5.2 on nt 4.0.
I've tried triggering programatically.
i.e if i put a message in a queue another
program is triggered.For achieving this i set triggering on ,trigger type,create the process defn associate it with appl .. all in the MQExplorer.
can the same be achieved programatically?
do i have to create MQProcess object for
it ??
say I want prg1 to be triggerred when a certain condition is satisfies and prg2 otherwise.
Thanks and Regards,
Vandana
|
|
Back to top |
|
 |
dgolding |
Posted: Mon Jan 14, 2002 1:00 am Post subject: |
|
|
 Yatiri
Joined: 16 May 2001 Posts: 668 Location: Switzerland
|
You can set those attributes on the queue using MQSET - see the Application Programming reference and guide manuals. If you set up two process definitions (one for Prog A, and one for Prog B) before hand, then at run time just set the process attribute on the queue BEFORE you put the mesage to it. |
|
Back to top |
|
 |
bduncan |
Posted: Mon Jan 14, 2002 5:49 pm Post subject: |
|
|
Padawan
Joined: 11 Apr 2001 Posts: 1554 Location: Silicon Valley
|
What dgolding suggested will work, however, I was wondering if you might consider just making multiple queues. If you want to trigger program A if a certain type of message arrives, and program B if another arrives, why not send the 'A' messages to one queue, and the 'B' messages to another, since logically, you are treating them as different kinds of messages?
_________________ Brandon Duncan
IBM Certified MQSeries Specialist
MQSeries.net forum moderator |
|
Back to top |
|
 |
bob_buxton |
Posted: Tue Jan 15, 2002 7:05 am Post subject: |
|
|
 Master
Joined: 23 Aug 2001 Posts: 266 Location: England
|
If separate Qs are not an option why not trigger a front end dispatcher program to evaluate your condition and then invoke the appropriate program.
Changing the process definition each time is likely to be fairly expensive. There will be a timing window between changing the definition and putting the message. Also triggering only (normally) affects the first message posted to a Q. It wasn't clear wheteher you wanted your condition checked for every message.
_________________ Bob Buxton
Ex-Websphere MQ Development |
|
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
|
|
|
|