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 » Getting a Handle on the Trigger Message

Post new topic  Reply to topic
 Getting a Handle on the Trigger Message « View previous topic :: View next topic » 
Author Message
Vin
PostPosted: Fri Jun 21, 2002 10:24 am    Post subject: Getting a Handle on the Trigger Message Reply with quote

Master

Joined: 25 Mar 2002
Posts: 212
Location: India

I've set up an application queue for trrigerring and my Question Is how do I get this message from the Queue. The application which starts up when the message arrives on the queue set up for triggering has to get the trigger message and process it. Thanks very much.
Back to top
View user's profile Send private message
mqonnet
PostPosted: Fri Jun 21, 2002 10:56 am    Post subject: Reply with quote

Grand Master

Joined: 18 Feb 2002
Posts: 1114
Location: Boston, Ma, Usa.

Hmmm... Think this is the continuation of your problem from the other thread.

You need to have the following to get your app triggered and retrive message off the queue.

1) Local queue which is set for triggering.
2) Initiation queue.
3) Process definition, which holds the name of the app to be triggerred.
4) Trigger monitor, which actually triggers the application mentioned in your process definition.
5) Most importantly, all the rules for app triggerring need to be met for this whole thing to happen. Check out triggerring manual for more info on this.

The app which is triggerred need to retrieve the message off the queue. This is what should go in the code of the triggered app.

Hope this helps.
Cheers.
Kumar
_________________
IBM Certified WebSphere MQ V5.3 Developer
IBM Certified WebSphere MQ V5.3 Solution Designer
IBM Certified WebSphere MQ V5.3 System Administrator
Back to top
View user's profile Send private message Send e-mail Visit poster's website
bduncan
PostPosted: Fri Jun 21, 2002 12:39 pm    Post subject: Reply with quote

Padawan

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

Vin,
I think you are confusing the trigger message and the message that causes the trigger to occur. Remember, when your message lands on a queue, and the arrival of this message satisfies ALL trigger conditions for that queue, a new message will be created. This message is called the trigger message, and is completely independent of your message. This message is placed on whatever initiation queue you specified, which the trigger monitor is watching. The trigger monitor will retrieve the trigger message which contains the information to trigger your application. The trigger monitor will start your application, and now it is up to your application to open the triggered queue and retrieve YOUR message (the one that caused the trigger to occur). Note that the trigger message is consumed by the trigger monitor. Your application will never have access to the actual trigger message.
_________________
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 » Getting a Handle on the Trigger Message
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.