Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

how to set trigger ??

Status
Not open for further replies.

aziex

MIS
Feb 19, 2002
1
TW
i will get message from mq
and i already writtten a java-language program to get
but only manual used
so..........
how to set trigger to connect the program automatically
 
aziex,

I do not know what platform you are using, but if it is Windows, you cannot do triggering per the IBM MQSeries manual. I know you can put in the triggering information through the MQSeries console, but it apparently does not do anything.

If you are on another platform, you can use these commands to set up a triggered queue:

*CREATE A TRIGGERED LOCAL QUEUE
DEF QL(TRIGQ) +
DESCR('TRIGPGM receives these messages') +
TRIGGER +
TRIGTYPE(FIRST) +
TRIGDATA('This is passed to the TRIGPGM') +
INITQ(INITQ) +
PROCESS(TRIGPGM) +
REPLACE

*CREATE A PROCESS TO TRIGGER
DEF PROCESS(TRIGPGM) +
DESCR('Start TRIGPGM') +
APPLICID('C:\TRIGGER') +
USERDATA('This is passed to the TRIGGER program') +
ENVRDATA('This is passed to the TRIGGER program') +
REPLACE

Best wishes,



Phil (Lude)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top