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 » IBM MQ Java / JMS » Stopping Receiver

Post new topic  Reply to topic
 Stopping Receiver « View previous topic :: View next topic » 
Author Message
techno
PostPosted: Fri Feb 07, 2003 3:09 pm    Post subject: Stopping Receiver Reply with quote

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
View user's profile Send private message
yaakovd
PostPosted: Sat Feb 08, 2003 9:44 am    Post subject: Reply with quote

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

MQSeries.net Forum Index » IBM MQ Java / JMS » Stopping Receiver
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.