Author |
Message
|
psn |
Posted: Sun Jul 04, 2004 11:07 am Post subject: How write a flow which generate n message from one input msg |
|
|
Disciple
Joined: 30 Oct 2002 Posts: 193 Location: France
|
Hi,
I search a way to generate n messages from one input message . The idea could be wit propagate but when n is big the transaction is to big !!!
Have an idea ?
PSN |
|
Back to top |
|
 |
jefflowrey |
Posted: Sun Jul 04, 2004 11:10 am Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
Suggestion 1: Don't use Transactions
Suggestion 2: Use the supposed ability to set transactionality in a DestinationList to break up your output messages into smaller transactions. _________________ I am *not* the model of the modern major general. |
|
Back to top |
|
 |
kirani |
Posted: Sun Jul 04, 2004 1:25 pm Post subject: |
|
|
Jedi Knight
Joined: 05 Sep 2001 Posts: 3779 Location: Torrance, CA, USA
|
How many msgs are u planning on propagating and what is the approx output message lenght ? _________________ 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 |
|
 |
psn |
Posted: Sun Jul 04, 2004 10:54 pm Post subject: |
|
|
Disciple
Joined: 30 Oct 2002 Posts: 193 Location: France
|
It is for a performance test the messages are 1.5 Ko big and must be persistent...
PSN |
|
Back to top |
|
 |
kirani |
Posted: Sun Jul 04, 2004 11:25 pm Post subject: |
|
|
Jedi Knight
Joined: 05 Sep 2001 Posts: 3779 Location: Torrance, CA, USA
|
Propogating 1.5K size message should not be a problem. What is your input message size and how many messages you will propagate in one UOW? _________________ 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 |
|
 |
psn |
Posted: Mon Jul 05, 2004 12:06 am Post subject: |
|
|
Disciple
Joined: 30 Oct 2002 Posts: 193 Location: France
|
|
Back to top |
|
 |
shanson |
Posted: Mon Jul 05, 2004 5:11 am Post subject: |
|
|
 Partisan
Joined: 17 Oct 2003 Posts: 344 Location: IBM Hursley
|
Two things:
a) As you go through the input message, you need to delete the parts you have finished with. You can do this by first copying the input message to the local environment before it is parsed, to make the message mutable. Then you just access the copy in the local environment instead, build up the output message, use PROPOGATE to send it down the flow, then use DELETE to remove the finished portion of the copy before building the next ouput message. Doing this, coupled with the fact that the broker will only parse the bits of the message it needs to, means you only ever have a portion of the input message tree in memory at a given time.
b) MQ is optimized for up to about 100 messages in a UOW. |
|
Back to top |
|
 |
|