ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » General IBM MQ Support » Stop Channel using program

Post new topic  Reply to topic
 Stop Channel using program « View previous topic :: View next topic » 
Author Message
Mahes
PostPosted: Tue Oct 26, 2010 6:47 am    Post subject: Stop Channel using program Reply with quote

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
View user's profile Send private message
mqjeff
PostPosted: Tue Oct 26, 2010 6:50 am    Post subject: Reply with quote

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
View user's profile Send private message
Mahes
PostPosted: Tue Oct 26, 2010 8:25 am    Post subject: Reply with quote

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
View user's profile Send private message
mqjeff
PostPosted: Tue Oct 26, 2010 8:47 am    Post subject: Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 17447

http://publib.boulder.ibm.com/infocenter/wmqv7/v7r0/index.jsp?topic=/com.ibm.mq.csqzaw.doc/ja35230_.htm

http://publib.boulder.ibm.com/infocenter/wmqv7/v7r0/index.jsp?topic=/com.ibm.mq.javadoc.doc/WMQJavaClasses/com/ibm/mq/pcf/package-summary.html
Back to top
View user's profile Send private message
Mr Butcher
PostPosted: Wed Oct 27, 2010 12:09 am    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » General IBM MQ Support » Stop Channel using program
Jump to:  



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
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.