|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
Multiple execution groups and flow instances |
« View previous topic :: View next topic » |
Author |
Message
|
aks |
Posted: Sun Jun 20, 2004 10:21 pm Post subject: Multiple execution groups and flow instances |
|
|
Voyager
Joined: 19 Jul 2002 Posts: 84
|
I read with interest the following article about the use of more than one execution group and/or additional instances of flows in http://www.mqseries.net/phpBB2/viewtopic.php?t=5986&highlight=execution+group+thread
I currently have a single-threaded process that accepts XML messages on an mqinput node transforms them into multiple COBOL copybook records, and then dumps these on an mqoutput node (WBIMB V5), as follows
Java program -----> mqinput node -----> compute node --------> mqoutput node
The output COBOL records written for each input XML message are order dependent and everything is currently working nicely.
I now have a requirement to allow multiple Java programs to put messages on the input node, but the cobol records of each transformed XML message must not be interleaved on the output queue.
My questions are:
1) I assume that my single execution group/no additional instances model will continue to work, as each message will be processed in turn in the flow?
2) How can I make it more multithreaded inside MQSI, so that the output messages of each XML input remain together on the queue, and not be mixed up with output records of other xml inputs?
Thanks
Alan |
|
Back to top |
|
 |
kirani |
Posted: Sun Jun 20, 2004 10:54 pm Post subject: |
|
|
Jedi Knight
Joined: 05 Sep 2001 Posts: 3779 Location: Torrance, CA, USA
|
aks wrote: |
1) I assume that my single execution group/no additional instances model will continue to work, as each message will be processed in turn in the flow?
|
Yes.
aks wrote: |
2) How can I make it more multithreaded inside MQSI, so that the output messages of each XML input remain together on the queue, and not be mixed up with output records of other xml inputs?
|
Hmm .. It's kind of difficult to do this. I don't think you can control the way output messages are written to the output queue. If you are running a single thread then it would work fine. But in a multi-threaded environment i don't think its possible.
Actually, in my previous post I was explaining the behavior for WMQI on Solaris. I saw that behavior where each EG's tied to a CPU. _________________ Kiran
IBM Cert. Solution Designer & System Administrator - WBIMB V5
IBM Cert. Solutions Expert - WMQI
IBM Cert. Specialist - WMQI, MQSeries
IBM Cert. Developer - MQSeries
|
|
Back to top |
|
 |
EddieA |
Posted: Sun Jun 20, 2004 10:55 pm Post subject: |
|
|
 Jedi
Joined: 28 Jun 2001 Posts: 2453 Location: Los Angeles
|
1) Yes. Except that MQ does NOT guarantee "order" of delivery. but in "most" cases it will work that way.
2) Search the Forum for Group messages. There have been a number of posts that explain how to make it work in WMQI. However, you will have to change your COBOL program to understand Groups. Or come up with some scheme to set MessageID, CorrelationID, or something, to identify the messages that belong together
If you can't change the COBOL probgram, then the answer to 2 is (probably): You can't.
Cheers, _________________ Eddie Atherton
IBM Certified Solution Developer - WebSphere Message Broker V6.1
IBM Certified Solution Developer - WebSphere Message Broker V7.0 |
|
Back to top |
|
 |
|
|
 |
|
Page 1 of 1 |
|
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
|
|
|
|