|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
Using ATOMIC Statements in PROPAGATE |
« View previous topic :: View next topic » |
Author |
Message
|
Prasi |
Posted: Mon Dec 16, 2013 1:06 pm Post subject: Using ATOMIC Statements in PROPAGATE |
|
|
Apprentice
Joined: 03 Aug 2011 Posts: 42
|
Hi,
Is there anyway we can use ATOMIC blocks which has PROPAGATE statements? I know we cant but if there is some workaround, that can be very much helpful. |
|
Back to top |
|
 |
ajodowd |
Posted: Mon Dec 16, 2013 4:34 pm Post subject: |
|
|
Novice
Joined: 15 Dec 2013 Posts: 13
|
|
Back to top |
|
 |
Prasi |
Posted: Tue Dec 17, 2013 7:13 am Post subject: |
|
|
Apprentice
Joined: 03 Aug 2011 Posts: 42
|
Hi Anthony,
Thanks for the reply. I would like to update a shared variable. The thing is the shared variable values will be updated based on some if-else condition and propagated to different 'OUT' terminals. |
|
Back to top |
|
 |
ajodowd |
Posted: Wed Dec 18, 2013 12:56 am Post subject: |
|
|
Novice
Joined: 15 Dec 2013 Posts: 13
|
Hi Prasi,
The ATOMIC block is just right for updating the shared variable. After this block, you can then PROPAGATE. If you're trying to hold the value of the shared variable during the duration of the PROPAGATE, then you'd have some very large serialisation issues, as everything else would be help up behind it.
Is there any reason why you cannot update the shared variable in the block, copy the value to a local variable (e.g. the message tree) and PROPAGATE as normal? In this way, you'd get the sharing across instances that you need, and not synchronise downstream.
Does that help at all?
Anthony. |
|
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
|
|
|
|