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 » Keep a msgflow or EG stopped.

Post new topic  Reply to topic
 Keep a msgflow or EG stopped. « View previous topic :: View next topic » 
Author Message
Blomman
PostPosted: Fri Jan 28, 2011 3:29 am    Post subject: Keep a msgflow or EG stopped. Reply with quote

Master

Joined: 31 Oct 2006
Posts: 230

Hi!

I have been searching the docs for some info about this.
But is there anyway that i can configure the WMB to keep some flows or EGs stopped during startup of the WMB.
Even if the flows or EGs where started berfore WMB was stopped or did go down for some other reason.

I have some ideas how to solve this, but is there any configurable way to do this in the product?

Best Regards!

//Blomman
Back to top
View user's profile Send private message
lancelotlinc
PostPosted: Fri Jan 28, 2011 5:59 am    Post subject: Reply with quote

Jedi Knight

Joined: 22 Mar 2010
Posts: 4941
Location: Bloomington, IL USA

This support pak may help you with that.

https://www-304.ibm.com/support/docview.wss?uid=swg24027297
_________________
http://leanpub.com/IIB_Tips_and_Tricks
Save $20: Coupon Code: MQSERIES_READER
Back to top
View user's profile Send private message Send e-mail
mqmatt
PostPosted: Fri Jan 28, 2011 8:05 am    Post subject: Reply with quote

Grand Master

Joined: 04 Aug 2004
Posts: 1213
Location: Hursley, UK

It's pretty straightforward to stop a message flow within a JavaCompute node.
Code:
ExecutionGroupProxy e = ExecutionGroupProxy.getLocalInstance();
MessageFlowProxy m = e.getMessageFlowByName("MyFlow");
m.stop();

What's more difficult is preventing a message flow from starting at start-up. In V7, only those message flows that were already running at the time the execution group last stopped will be restarted.
To prevent an arbitary message flow from starting, then the easiest way is to get-inhibit the input source. Other techniques will often leave you with a small window in which the flow could process messages.
Back to top
View user's profile Send private message
mqjeff
PostPosted: Fri Jan 28, 2011 8:14 am    Post subject: Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 17447

mqmatt wrote:
To prevent an arbitary message flow from starting, then the easiest way is to get-inhibit the input source.


This is a little harder to do for things that start with, for example, TCPIPServerInput or EmailInput or HTTPInput or or or... how many input nodes do we ship with the product again these days?
Back to top
View user's profile Send private message
zpat
PostPosted: Fri Jan 28, 2011 8:26 am    Post subject: Reply with quote

Jedi Council

Joined: 19 May 2001
Posts: 5866
Location: UK

Don't forget the need to deploy a flow into a stopped state.

At present deployment always starts the flow.
Back to top
View user's profile Send private message
fatherjack
PostPosted: Mon Jan 31, 2011 2:06 am    Post subject: Reply with quote

Knight

Joined: 14 Apr 2010
Posts: 522
Location: Craggy Island

zpat wrote:
At present deployment always starts the flow.


Are you sure? Even if the flow is stopped?
_________________
Never let the facts get in the way of a good theory.
Back to top
View user's profile Send private message
zpat
PostPosted: Mon Jan 31, 2011 2:20 am    Post subject: Reply with quote

Jedi Council

Joined: 19 May 2001
Posts: 5866
Location: UK

That is my understanding.
Back to top
View user's profile Send private message
fatherjack
PostPosted: Mon Jan 31, 2011 2:22 am    Post subject: Reply with quote

Knight

Joined: 14 Apr 2010
Posts: 522
Location: Craggy Island

zpat wrote:
That is my understanding.


And when you try it, the flow restarts?
_________________
Never let the facts get in the way of a good theory.
Back to top
View user's profile Send private message
zpat
PostPosted: Mon Jan 31, 2011 3:39 am    Post subject: Reply with quote

Jedi Council

Joined: 19 May 2001
Posts: 5866
Location: UK

OK, maybe it's the first ever deployment of the flow that runs automatically on deployment, either way it's a problem.
Back to top
View user's profile Send private message
fatherjack
PostPosted: Mon Jan 31, 2011 3:46 am    Post subject: Reply with quote

Knight

Joined: 14 Apr 2010
Posts: 522
Location: Craggy Island

zpat wrote:
OK, maybe it's the first ever deployment of the flow that runs automatically on deployment


Correct
_________________
Never let the facts get in the way of a good theory.
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 » Keep a msgflow or EG stopped.
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.