|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
MQ tigger |
« View previous topic :: View next topic » |
Author |
Message
|
sameno |
Posted: Thu Aug 19, 2004 6:35 am Post subject: MQ tigger |
|
|
Newbie
Joined: 19 Aug 2004 Posts: 2
|
Hi,
Iam pretty new to MQ..2 days old
I have a doubt regarding the triggers in MQ.
Now..I create a tigger on my local queue as
alter qlocal(APPQ)
trigger
trigtype(FIRST)
Process('P1')
initq('IQ')
Now I want to create another tigger to see if the channels are active and if not..I need to bring it up. IO know its possible but is this the solution
alter qlocal(MYQMNAME) initq('SYSTEM.CHANNEL.INITQ')
tHANX A MILLION
P.s.. Can any1 pls send me some link of some doc fot his?  |
|
Back to top |
|
 |
Nigelg |
Posted: Thu Aug 19, 2004 7:05 am Post subject: |
|
|
Grand Master
Joined: 02 Aug 2004 Posts: 1046
|
To trigger a channel you need to set the trigger attributes in the transmission queue (xmitq) defined on the channel. In this case, you do not need to set the process name.
So, if the SDR channel is defined as:
def chl(SDR1) chltype(SDR) conname('server(1414)') xmitq(QMGR)
define QMGR as
def ql(QMGR) usage(XMITQ) trigger trigtype(FIRST) initq(SYSTEM.CHANNEL.INITQ)
There is no need to set the process attribute; when a msg arrives on the xmitq the channel initiator will search the channels for a channel with the xmitq name. |
|
Back to top |
|
 |
sameno |
Posted: Thu Aug 19, 2004 7:25 am Post subject: |
|
|
Newbie
Joined: 19 Aug 2004 Posts: 2
|
thanx
Consider this scenario
Two system to interact with
System A
System B
A is the sender and B is the reciever
I define local queue on A and make its usage as Transmission Queue
Now I define a SDR channel on A and a RCVR channel on B
Open the listener on B and start the channel
Create a local queue on B and a remote queue on A.
Now I want to create a trigger on appl on B such that as soon as message comes it sould come up and pick up the message from the local queue of B
And a trigger(channel trigger) on A...such that as soon a message comes into the transmission queue, The channel becomes active(assuming it was inactive earlier), sends all the message in the queue and goes back in inactive state.
How do I go about with the latter part?
sorry 4 bein sucha pain!  |
|
Back to top |
|
 |
Nigelg |
Posted: Thu Aug 19, 2004 7:31 am Post subject: |
|
|
Grand Master
Joined: 02 Aug 2004 Posts: 1046
|
The first part is the trigger on the local queue that you gave an example of in APPQ. You also have to define the process P1 such that it calls an app to get the msg from APPQ, and you have to run the trigger monitor against the initq IQ, i.e. runmqtrm -m QMB -q IQ
The second part is what I put in my last post, how to get the channel to start when a msg arrives on the xmitq.
The triggering stuff is in the APG manual. |
|
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
|
|
|
|