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
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
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.