Synchronization of different flows in mule -



Synchronization of different flows in mule -

i have 2 flows, a.flow , b.flow, both flows execute same java class.

a & b read separate queue.

i want synchronize flows if both flows input simultaneously 1 flow @ time process , after finishes, other flow start processing.

any ideas?

thanks

use pooled component , configure utilize 1 thread @ time:

<flow name="a"> <jms:inbound-endpoint...> ... <vm:outbound-endpoint path="process"/> ... </flow> <flow name="b"> <jms:inbound-endpoint...> ... <vm:outbound-endpoint path="process"/> ... </flow> <flow name="process"> <vm:inbound-endpoint path="process"/> <pooled-component class="org.my.prototypeobject"> <pooling-profile exhaustedaction="when_exhausted_wait" initialisationpolicy="initialise_all" maxactive="1" maxidle="1" maxwait="1000" /> </pooled-component> </pooled-component> </flow>

source: http://www.mulesoft.org/documentation/display/current/configuring+java+components#configuringjavacomponents-configuringapooledjavacomponent

mule

Comments

Popular posts from this blog

php - Android app custom user registration and login with cookie using facebook sdk -

django - Access session in user model .save() -

php - .htaccess Multiple Rewrite Rules / Prioritizing -