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 Java / JMS » sam

Post new topic  Reply to topic
 sam « View previous topic :: View next topic » 
Author Message
sam
PostPosted: Mon Apr 08, 2002 2:48 pm    Post subject: Reply with quote

Acolyte

Joined: 02 Apr 2002
Posts: 52

Can anyone guide me where to find some sample code for trigerring. In other words when there is a message on the queue, the queue should trigger an application which can process the message. Thanks very much.
Back to top
View user's profile Send private message
bduncan
PostPosted: Mon Apr 08, 2002 4:06 pm    Post subject: Reply with quote

Padawan

Joined: 11 Apr 2001
Posts: 1554
Location: Silicon Valley

Sam,
There really is no such thing as sample code as triggering, because the application that gets triggered really doesn't behave any differently than an application that is started by some other means. The meat and potatoes of triggering occurs in the PROCESS object defined in the queue manager. This contains the parameters necessary to launch the specified application. Once the application is launched, it typically has (as one of the parameters passed to it on the command line) the name of the queue, or even the correlId of the message that it is supposed to go and pick up. The message that caused the trigger to fire isn't passed automatically to the application that gets launched. It's up to the triggered application to figure out who triggered him, and what to do about it. But this is typically very easy because you can pass parameters to the triggered application on the command line. We have had some excellent discussions about triggering on this site, so why don't you start by using the search tool to find some of the threaded topics. You can also look at the triggering chapter from the IBM MQSeries manuals, which explain the process (or phenomena as some would say) in excruciating detail...


_________________
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
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » IBM MQ Java / JMS » sam
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.