Making multicasting router to act as serial router

View: New views
2 Messages — Rating Filter:   Alert me  

Making multicasting router to act as serial router

by psk :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


I'm trying to process messages in a order...I'm using multicasting-router as it passes original payload to both the end points ( and thats what I want). I tried with following setup, but no luck.

Also, is there a way to make multicasting-router to send SAME payload to both the routers.?

Thanks
-Prashant



        <vm:connector name="noQVmConnectorAgg" queueEvents="false" >
         <receiver-threading-profile maxThreadsActive="1" maxThreadsIdle="1"  
                        maxBufferSize="1" doThreading="false"  />
     <dispatcher-threading-profile maxThreadsActive="1"  
                        maxThreadsIdle="1" maxBufferSize="1" doThreading="false"  
                 />
                 
        <vm:endpoint name="mySingleThreadedConnector" path="process.collection.channel" connector-ref="noQVmConnectorAgg" >
       
       
       
        <service name="MySequentialProcessing">
                                <inbound>
                                        <inbound-endpoint ref="mySingleThreadedConnector" />
                       
                                </inbound>
                               
                       
         <outbound>
           <multicasting-router >
           <outbound-endpoint ref="firstOperation" transformer-refs="retrunFirstMessage"/> <!--Finish this -->
              <outbound-endpoint ref="secondOperation" transformer-refs="retunSecondMessage"/> <!-- then start this -->
        </multicasting-router >
          </outbound>
   </service>

Re: Making multicasting router to act as serial router

by Omar slim :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

If you configure the enpoints as synchronous the multicasting router router will send the same message to both enpoints, one after the other.

It will aggregate both response in a MuleMessageCollection and return this.

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email