|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
How to trigger a channel( Urgent) |
« View previous topic :: View next topic » |
Author |
Message
|
vinayak |
Posted: Mon Oct 14, 2002 6:45 am Post subject: How to trigger a channel( Urgent) |
|
|
Novice
Joined: 07 Apr 2002 Posts: 17
|
Hi,
What are all the steps involved for triggering a channel if a new message comes to a mesage queue to be sent but the channel is down .
Please reply urgently.
Thanks,
VInayak |
|
Back to top |
|
 |
jhalstead |
Posted: Mon Oct 14, 2002 8:39 am Post subject: |
|
|
 Master
Joined: 16 Aug 2001 Posts: 258 Location: London
|
I'm assuming that by down you mean inactive.
The transmission queue will need the following attributes.
ALTER QL(XMITQ NAME) +
INITQ(SYSTEM.CHANNEL.INITQ) +
TRIGGER +
TRIGTYPE(FIRST) +
TRIGDATA(SENDER CHANNEL NAME)
This will start the sender portion of the channel is the transmission queue goes deptyh goes from 0 to 1. This will not work if the channel is in a stopped state.
Jamie |
|
Back to top |
|
 |
vinayak |
Posted: Mon Oct 14, 2002 9:33 am Post subject: |
|
|
Novice
Joined: 07 Apr 2002 Posts: 17
|
Hi Jamie,
Thanks for the answer .
I would need one more favour from you.
When I start the channel and if the channel doen't send any messages for 90 mins it becomes inactive. Then I have to restart the channel agin manually. Currently I have set up a cron which starts the channel every 30 mins. Is there any way where I can set the attribute of the channel so that it does not become inactive after 90 mins i.e. it wil run continuously till the application is shut down.
Thanks,
Vinayak |
|
Back to top |
|
 |
mgrabinski |
Posted: Mon Oct 14, 2002 9:32 pm Post subject: |
|
|
Master
Joined: 16 Oct 2001 Posts: 246 Location: Katowice, Poland
|
Hi Vinayak
If you want to implement channel triggering, there is no need for the channel to up all the time. Leave your current settings, or even lower the interval. When there is a message to be sent, the channel will start up and send it.
If you do want to have a channel running forever, change the DISCINT parameter to 0 _________________ Marcin Grabinski <>< |
|
Back to top |
|
 |
pgorak |
Posted: Mon Oct 14, 2002 9:51 pm Post subject: |
|
|
 Disciple
Joined: 15 Jul 2002 Posts: 158 Location: Cracow, Poland
|
There's also another way to have a channel triggered - a more complicated one, but you have to use it in some cases, e.g. on MVS:
ALTER QL(XMITQ NAME) +
INITQ(SYSTEM.CHANNEL.INITQ) +
TRIGGER +
TRIGTYPE(FIRST) +
PROCESS(PROCESS_NAME)
DEF PROCESS(PROCESS_NAME) +
USERDATA(CHANNEL_NAME) +
APPLICID(CSQX START) +
APPLTYPE(MVS)
You can use these definitions on UNIX as well, if you ommit APPLICID and APPLTYPE attributes.
Piotr |
|
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
|
|
|
|