|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
Stop Channel using program |
« View previous topic :: View next topic » |
Author |
Message
|
Mahes |
Posted: Tue Oct 26, 2010 6:47 am Post subject: Stop Channel using program |
|
|
Novice
Joined: 09 Sep 2010 Posts: 21
|
Hi,
I need to write a program which stops the sender channel for 5 min and then start it back.
before i start up i would like to get suggestion from the experts ( though i have gone through PCF examples , google ,etc..).
Plz suggest, this should be done in JAVA. |
|
Back to top |
|
 |
mqjeff |
Posted: Tue Oct 26, 2010 6:50 am Post subject: |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 17447
|
If you've gone through the examples, then you know how easy this is to do in Java.
If you want advice about whether you *should* do this or not... we can't tell you without knowing why you *want* to do this. |
|
Back to top |
|
 |
Mahes |
Posted: Tue Oct 26, 2010 8:25 am Post subject: |
|
|
Novice
Joined: 09 Sep 2010 Posts: 21
|
Hi Jeff,
I need to do this because i need to stop flow of message around 11:58:00 to 12:03:00 as we have some other activity on receiving MQ server, if it receives it will submit UBE ( INTO JDE )job on the server, this should not happen as other application ( JDE ) takes full control of UBE during this time.
I have not found any proper examples on JAVA, could you send me any link if you have come across? this would help me for better understanding
Thanks in advance! |
|
Back to top |
|
 |
mqjeff |
Posted: Tue Oct 26, 2010 8:47 am Post subject: |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 17447
|
|
Back to top |
|
 |
Mr Butcher |
Posted: Wed Oct 27, 2010 12:09 am Post subject: |
|
|
 Padawan
Joined: 23 May 2005 Posts: 1716
|
why write a program for this? you can do that in a simple script using runmqsc that is scheduled by crontab at the proper times for stopping and starting the channel?
e.g. (on Unix)
echo "stop channel(channelname) " | runmqsc qmgrname
should also be possible on windows using cmd files / taskmgr or whatever is available _________________ Regards, Butcher |
|
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
|
|
|
|