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 » WebSphere Message Broker (ACE) Support » what is the best way to stop a broker?

Post new topic  Reply to topic
 what is the best way to stop a broker? « View previous topic :: View next topic » 
Author Message
morpheus
PostPosted: Fri Sep 26, 2003 11:45 am    Post subject: what is the best way to stop a broker? Reply with quote

Acolyte

Joined: 08 Mar 2003
Posts: 72
Location: Austin, TX

Hi guys
Does anybody know which is the best way to stop a queue manager that has a broker?

* stop the queue manager and not to worry about the broker
* stop the broker first and then queue manager

Which one is correct?

Thanks
-Morpheus
Back to top
View user's profile Send private message
venkat kurra
PostPosted: Fri Sep 26, 2003 11:55 am    Post subject: Reply with quote

Master

Joined: 18 Oct 2001
Posts: 245
Location: Bloomington , IL

It is good idea to stop the broker first and then queue manager. Even if you stop the queue manager first,it should stop the broker and then queue manager.
_________________
Thanks,

Venkat Kurra

IBM Certified Specialist-MQSeries
IBM Websphere MQSeries Administrator
IBM WebSphere Message Broker System Admin
Back to top
View user's profile Send private message Send e-mail
morpheus
PostPosted: Fri Sep 26, 2003 1:44 pm    Post subject: Thank you Reply with quote

Acolyte

Joined: 08 Mar 2003
Posts: 72
Location: Austin, TX

venkat,
Thank you for your reply. So what happens to the message that's in the queue when broker's shut down. Is it going to be processed later when everything restarted. I'm talking about non-persistent messages here. I want to make sure no message is lost. Does the queue manager stop receiving messages when we stop the broker. I want the queue manager to do that. How will I achieve that?
If you can suggest any source of information that'll also be helpful.


-Morpheus
Back to top
View user's profile Send private message
vennela
PostPosted: Fri Sep 26, 2003 2:25 pm    Post subject: Reply with quote

Jedi Knight

Joined: 11 Aug 2002
Posts: 4055
Location: Hyderabad, India

If you stop the broker, then there should be no reason for a QMGR to stop receiving messages. If you want to do that then may be PUT DISABLE your queue.

If they are non-persistent messages then if the QMGR is restarted, then you will not have them back. In that case you should either make the messages persistent, or should be affording to lose the messages.
Back to top
View user's profile Send private message Send e-mail Visit poster's website
morpheus
PostPosted: Fri Sep 26, 2003 2:33 pm    Post subject: Thank you Reply with quote

Acolyte

Joined: 08 Mar 2003
Posts: 72
Location: Austin, TX

What if I stop the queue Manager? Does it stop the broker and stop receiving messages? or does it receive any messages between broker shutdown and QueueManager shutdown?



Thanx
-Morpheus
Back to top
View user's profile Send private message
morpheus
PostPosted: Fri Sep 26, 2003 2:40 pm    Post subject: Thank you Reply with quote

Acolyte

Joined: 08 Mar 2003
Posts: 72
Location: Austin, TX

What if I stop the queue Manager? Does it stop the broker and stop receiving messages? or does it receive any messages between broker shutdown and QueueManager shutdown?



Thanx
-Morpheus
Back to top
View user's profile Send private message
EddieA
PostPosted: Fri Sep 26, 2003 3:26 pm    Post subject: Reply with quote

Jedi

Joined: 28 Jun 2001
Posts: 2453
Location: Los Angeles

MQSeries is just that and the Broker is just an application that uses MQ.

As long as MQSeries is up, it can continue to accept messges, and applications that are connected can continue to GET messages. When you shut down MQ, it notifies any connected applications that is being terminated and they should gracefully end. This will include the broker, other connected applications and it will also include any channel MCAs running. This means that any 'well written' application will now cease to GET or PUT messages and will terminate. Or at least stop talking to MQ.

If you just terminate the broker, then all you have done is stopped a single MQ application. MQSeries will continue to function, as it always does.

How you co-ordinate those 2 actions is entirely down to how you want things to operate.

Cheers,
_________________
Eddie Atherton
IBM Certified Solution Developer - WebSphere Message Broker V6.1
IBM Certified Solution Developer - WebSphere Message Broker V7.0
Back to top
View user's profile Send private message
morpheus
PostPosted: Mon Sep 29, 2003 10:42 am    Post subject: Thank you Reply with quote

Acolyte

Joined: 08 Mar 2003
Posts: 72
Location: Austin, TX

Thank you Eddie
I am now more clear.





-Morpheus
Back to top
View user's profile Send private message
mverh
PostPosted: Fri Oct 03, 2003 5:35 am    Post subject: Reply with quote

Voyager

Joined: 06 Mar 2002
Posts: 97

I have had this issue as well. Here is what you can do to ensure that no new messages arrive on broker input queues and all messages on broker input queues are pocessed prior to stopping a broker.

First you'll need to use MQ clusters. You create your broker input queues and expose them to your service requesters by having them join the cluster. Now when you need to stop the broker you would first suspend the broker qmgr from the cluster. This effectively stops any requester from sending any more messages to the broker queues. You then check your broker input queues to verify any messages sent prior to the suspension have been consumed. When all broker queues are empty you can stop the broker. When you start the broker you simply resume the qmgr into the cluster and now the broker input queus are advertised as being available again.
_________________
Marc Verhiel
IBM Canada Ltd.
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 » WebSphere Message Broker (ACE) Support » what is the best way to stop a broker?
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.