|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
Can I spawn a thread for parallel processing in a flow? |
« View previous topic :: View next topic » |
Author |
Message
|
asalema |
Posted: Wed Sep 27, 2006 3:05 pm Post subject: Can I spawn a thread for parallel processing in a flow? |
|
|
Apprentice
Joined: 05 May 2003 Posts: 35
|
Hi All,
We need to perform auditing in our message flow by dumping the message on a persistent audit queue as part of the main flow. However, because this audit process may take a long time and we may have to do it in multiple places along the main flow, we are looking for a way to do it in parallel with the main flow.
So, is there a way to spawn a thread or invoke a parallel processing as part of a flow?.
I know that we can use the "AdditionalInctances" property of the flow to add parallel flow instances, but our main concern is to shorten the time spent per each transaction and we don't want the auditing to have direct effect on this time.
Regards, |
|
Back to top |
|
 |
jefflowrey |
Posted: Wed Sep 27, 2006 3:28 pm Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
You don't get parallel processing in Broker within a single flow.
You have two basic options for auditing.
One, write an auditing message flow that processes messages from a queue and does stuff. Then "instrument" all of your flows to include a node or set of nodes that uses an MQOutput node to send data to the audit flow.
Two. In Version 6, FP1, there is a new broker "user exit" that you can take advantage of. It will allow you to non-invasively react to every single invocation of an *Input node, or to every single invocation of any node at all. The User Exit for Broker can only currently be written in C. It may be best to use this exit to "mirrorflow" your messages onto another queue, for processing by the same kind of audit recording flow as from option one. _________________ I am *not* the model of the modern major general. |
|
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
|
|
|
|