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 » monitor for stopped flows

Post new topic  Reply to topic
 monitor for stopped flows « View previous topic :: View next topic » 
Author Message
paustin_ours
PostPosted: Wed Dec 02, 2009 10:16 am    Post subject: monitor for stopped flows Reply with quote

Yatiri

Joined: 19 May 2004
Posts: 667
Location: columbus,oh

We have a requirement where we want to be alerted if a flow is stopped. Trying to use the event messages form broker that i have subscribed for to accomplish this.( Please let me know if there is a better way)

i get event messages like this

<Broker uuid="e16d3f10-2301-0000-0080-9b863d9b8027">
<ExecutionGroup uuid="2675a421-2501-0000-0080-fdefb974c890">
<Start>
<MessageFlow uuid="9c661823-2501-0000-0080-91534dd1247d"/>
<MessageFlow uuid="b2661823-2501-0000-0080-91534dd1247d"/>
</Start>
</ExecutionGroup>
</Broker>

how can i find the flow name from the UUID? Tried looking in the broker tables but couldnt find the flow names there.

trying to see if i can keep track of stopped flows and if there is not a consecutive start event then i will alert saying that the flow is stopped.

sounds complex but i guess i dont have a better way of doing this.
Back to top
View user's profile Send private message Yahoo Messenger
mqmatt
PostPosted: Wed Dec 02, 2009 11:52 am    Post subject: Reply with quote

Grand Master

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

Rather than using anything internal, the CMP will do all of this for you really easily.

Using the AdministeredObjectListener interface, you can elect to receive notifications when message flows start and stop. If necessary, you can also retrieve UUIDs from names and vice versa, but this shouldn't be necessary.

Basic flow for your scenario would be:
(1) Connect to CM (or broker in v7),
(2) get the required MessageFlowProxy object(s),
(3) call MessageFlowProxy.registerListener(), giving it your callback class,
(4) In the callback class's processModify() method, look for notifications where your message flow's 'object.runstate' becomes 'stopped'

The CMP API Exerciser will give you more information on the methods and the exact formats you need to enable this.
The DomainInfo sample (called BrokerInfo in v7) also gives you information on how to register listeners and receive notifications.

Hope this helps.
-Matt
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 » monitor for stopped flows
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.