|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
Sending parameters to trigger application |
« View previous topic :: View next topic » |
Author |
Message
|
meriton |
Posted: Tue Feb 03, 2004 2:29 pm Post subject: Sending parameters to trigger application |
|
|
Novice
Joined: 07 Aug 2002 Posts: 24
|
I have a java application being triggered by a depth trigger, and this application requires two parameters to run correctly. Which queue attribute is used to pass these parameters? I tried setting them in the trigger data field of the queue but that was not successful. |
|
Back to top |
|
 |
vennela |
Posted: Tue Feb 03, 2004 2:55 pm Post subject: |
|
|
 Jedi Knight
Joined: 11 Aug 2002 Posts: 4055 Location: Hyderabad, India
|
The easiest way to do it is write a batch file or a shell script and invoke your java application inside the batch/shell program. |
|
Back to top |
|
 |
RogerLacroix |
Posted: Tue Feb 03, 2004 7:54 pm Post subject: |
|
|
 Jedi Knight
Joined: 15 May 2001 Posts: 3264 Location: London, ON Canada
|
Hi,
When your program is triggered, it is passed the MQTMC2 structure. MQTMC2 contains the 3 useful fields: TriggerData, EnvData & UserData.
TriggerData is an attribute of the queue. Where as EnvData & UserData are attributes of the process definition.
Therefore, you can use any or all of these fields to pass info to your program.
Hope that helps.
Regards,
Roger Lacroix _________________ Capitalware: Transforming tomorrow into today.
Connected to MQ!
Twitter |
|
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
|
|
|
|