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 » Conditionally executing a Message Flow??

Post new topic  Reply to topic
 Conditionally executing a Message Flow?? « View previous topic :: View next topic » 
Author Message
LH33
PostPosted: Tue Mar 18, 2003 9:15 am    Post subject: Conditionally executing a Message Flow?? Reply with quote

Master

Joined: 21 Nov 2002
Posts: 200

HI!

I have to create a message flow that retrieves messages from a queue and logs them into a database. I want to know if there is a parameter or setting or some configuration to be able to turn the flow on or off depending on whether we want to log the messages or stop logging them for a period of time.

Thanks in advance for any help you can provide!!

LisaB
Back to top
View user's profile Send private message
jefflowrey
PostPosted: Tue Mar 18, 2003 9:47 am    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

There isn't anything predefined to do this. You will have to code your message flow (or something else) to identify when to enable logging and when to disable it.

The simplest way to skip logging is put in a filter node. The true path goes to the part that does the db insert. The false path is unconnected - the message will then get discarded.

The next option is to get-disable the queue your message flow is reading from. There are a number of options for doing this from inside WMQI - although you probably want to do it from a separate "control" message flow so that you can enable it again without having to do it manually.

Or you could use the command line tools in Support Pack IC01 to script removing and then re-assigning your message flow to your execution groups.
Back to top
View user's profile Send private message
LH33
PostPosted: Tue Mar 18, 2003 10:50 am    Post subject: Reply with quote

Master

Joined: 21 Nov 2002
Posts: 200

So if I do a filter node, then I would have to modify the flow every time I need to turn logging on or off. I was hoping there was a way to do it without modifying the flow each time. Based on an earlier response - is it correct that there are no parameters in WMQI to allow for this?

Thanks, LisaB
Back to top
View user's profile Send private message
jefflowrey
PostPosted: Tue Mar 18, 2003 12:24 pm    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

No, you wouldn't have to modify the flow each time.

Have the filter node test against a property of the message - or against any value you can compute in ESQL. Then you can control it on a per message basis. Or have it compared against a value pulled out of a database.

For instance, you could compare against the current time (returned by an ESQL function) to disable writing to the datbase when your database is in a maintenance window.

Again, this is all assuming that you want something to happen 'automatically', and you don't want to manually use the Operations tab to stop your flow.
Back to top
View user's profile Send private message
granthmuk
PostPosted: Wed Mar 19, 2003 7:35 am    Post subject: PubSub may offer the flexibility you require. Reply with quote

Apprentice

Joined: 16 May 2001
Posts: 38
Location: Edinburgh, Scotland

Perhaps you could use a PubSub mechanism to switch your logging on and off. You could subscribe on behalf of your logging flow when you want to log and unsubscribe when you don't want to log.
Back to top
View user's profile Send private message
LH33
PostPosted: Wed Mar 19, 2003 7:56 am    Post subject: Reply with quote

Master

Joined: 21 Nov 2002
Posts: 200

Thanks for the PubSub suggestion! Do you know how to do that or where I could find documentation on how to do that?

Thanks, LisaB
Back to top
View user's profile Send private message
granthmuk
PostPosted: Wed Mar 19, 2003 8:02 am    Post subject: Reply with quote

Apprentice

Joined: 16 May 2001
Posts: 38
Location: Edinburgh, Scotland

The best bets are probably to read the Application Programming guide Chapter 3 "Writing Publish/Subscribe applications" also the supportpac http://www-3.ibm.com/software/ts/mqseries/txppacs/ih06.html may also help.
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 » Conditionally executing a Message Flow??
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.