|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
Stopping Receiver |
« View previous topic :: View next topic » |
Author |
Message
|
techno |
Posted: Fri Feb 07, 2003 3:09 pm Post subject: Stopping Receiver |
|
|
Chevalier
Joined: 22 Jan 2003 Posts: 429
|
I have a few Message Receiver applications. Follow different ways to stop these processes (FGraceful shutdown).
1. Sending a text mq message to stop a process: Receiver process picks this message and exits the program.
2. Receiver process runs at a port. Small client program connects to this port and sends text 'stop'. MQ program exits, when server receives this text.
I see so many disadvantages with above processes.
IF MQ Server is in the process of shut down.
If the message is not received by receiver process
and so many disadvantages, and finally I may have to resort to
(kill -9)
Do you have any better ways to do shutdown the receiver process(This process is continuous process, in general)
thanks,
Shiva. |
|
Back to top |
|
 |
yaakovd |
Posted: Sat Feb 08, 2003 9:44 am Post subject: |
|
|
Partisan
Joined: 20 Jan 2003 Posts: 319 Location: Israel
|
For similar functionality we implemented the following scenario:
1. "Admin" application sends "stop" message to receiver application.
2. Receiver application process the message, sends response to "admin" and stops itself.
3. If response was nat received by "admin" at 20 seconds, it will resend "stop" message. You can define 3 retries with following alert.
Probably if MQ server was shutted down, also the receiver process was shutted down
Finally (kill -9) always helps  _________________ Best regards.
Yaakov
SWG, IBM Commerce, Israel |
|
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
|
|
|
|