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 » Sending parameters to trigger application

Post new topic  Reply to topic
 Sending parameters to trigger application « View previous topic :: View next topic » 
Author Message
meriton
PostPosted: Tue Feb 03, 2004 2:29 pm    Post subject: Sending parameters to trigger application Reply with quote

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
View user's profile Send private message
vennela
PostPosted: Tue Feb 03, 2004 2:55 pm    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website
RogerLacroix
PostPosted: Tue Feb 03, 2004 7:54 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » IBM MQ Java / JMS » Sending parameters to trigger application
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.