|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
sam |
« View previous topic :: View next topic » |
Author |
Message
|
sam |
Posted: Mon Apr 08, 2002 2:48 pm Post subject: |
|
|
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 |
|
 |
bduncan |
Posted: Mon Apr 08, 2002 4:06 pm Post subject: |
|
|
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 |
|
 |
|
|
 |
|
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
|
|
|
|