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 » General Discussion » Triggering

Post new topic  Reply to topic
 Triggering « View previous topic :: View next topic » 
Author Message
vandana
PostPosted: Sun Jan 13, 2002 10:52 pm    Post subject: Reply with quote

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
View user's profile Send private message
dgolding
PostPosted: Mon Jan 14, 2002 1:00 am    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
bduncan
PostPosted: Mon Jan 14, 2002 5:49 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website AIM Address
bob_buxton
PostPosted: Tue Jan 15, 2002 7:05 am    Post subject: Reply with quote

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
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 » General Discussion » 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.