[esb-java-user] Splitting and aggregating the responses

Ruwan Linton ruwan at wso2.com
Tue May 27 02:49:01 PDT 2008


j0na wrote:
> Ok, thanks for your fast replies 
>   
You are welcome Jonatan.

Thanks,
Ruwan
>
> Ruwan Linton-3 wrote:
>   
>> j0na wrote:
>>     
>>> OK, When the version 1.7 release will be finished?
>>>   
>>>       
>> It will be out on the end of this week and I will do the enhancement you 
>> proposed by early next week.
>>
>> Thanks,
>> Ruwan
>>     
>>> Ruwan Linton-3 wrote:
>>>   
>>>       
>>>> j0na wrote:
>>>>     
>>>>         
>>>>> I put a JIRA, a impovement. https://wso2.org/jira/browse/ESBJAVA-498
>>>>>   
>>>>>       
>>>>>           
>>>> Thanks.
>>>>     
>>>>         
>>>>> It is not very critical. And since you have a property with the
>>>>> sequence,
>>>>> I
>>>>> thought that would not be bad idea to sort the responses.
>>>>>   
>>>>>       
>>>>>           
>>>> Exactly, that is why I told you it should be trivial, but we have freeze 
>>>> the code on synapse for the release and will not be able to get this for 
>>>> the 1.7 release, but just after the 1.7 release you will be able to get 
>>>> this functionality. Will that be OK?
>>>>
>>>> Thanks,
>>>> Ruwan
>>>>     
>>>>         
>>>>> Ruwan Linton-3 wrote:
>>>>>   
>>>>>       
>>>>>           
>>>>>> Hi,
>>>>>>
>>>>>> OK, I got your point, but unfortunately this cannot be done for the 
>>>>>> moment. Well, it should be a trivial fix.
>>>>>>
>>>>>> How critical is this for you? and also could you please file a JIRA
>>>>>> for 
>>>>>> this issue so that I can fix this ASAP.
>>>>>>
>>>>>> Thanks,
>>>>>> Ruwan
>>>>>>
>>>>>> j0na wrote:
>>>>>>     
>>>>>>         
>>>>>>             
>>>>>>> If I have a XML with request of stockquote:
>>>>>>> 1º - IBM
>>>>>>> 2º - APPLE
>>>>>>> 3º - MICROSOFT
>>>>>>> 4º - HP
>>>>>>> 5º - DELL
>>>>>>>
>>>>>>> When I catch de response I see:
>>>>>>>
>>>>>>> 1º response - IBM
>>>>>>> 2º response - APPLE
>>>>>>> 3º response - MICROSOFT
>>>>>>> 4º response - HP
>>>>>>> 5º response - DELL
>>>>>>>
>>>>>>> The response have the same order of the request. Sorry for my
>>>>>>> english...
>>>>>>>
>>>>>>>
>>>>>>> Ruwan Linton-3 wrote:
>>>>>>>   
>>>>>>>       
>>>>>>>           
>>>>>>>               
>>>>>>>> j0na wrote:
>>>>>>>>     
>>>>>>>>         
>>>>>>>>             
>>>>>>>>                 
>>>>>>>>> Ok, Is there a way to respect the order?
>>>>>>>>>   
>>>>>>>>>       
>>>>>>>>>           
>>>>>>>>>               
>>>>>>>>>                   
>>>>>>>> Can you please explain what do you mean by respecting the order?
>>>>>>>>
>>>>>>>> Thanks,
>>>>>>>> Ruwan
>>>>>>>>     
>>>>>>>>         
>>>>>>>>             
>>>>>>>>                 
>>>>>>>>> Ruwan Linton-3 wrote:
>>>>>>>>>   
>>>>>>>>>       
>>>>>>>>>           
>>>>>>>>>               
>>>>>>>>>                   
>>>>>>>>>> j0na wrote:
>>>>>>>>>>     
>>>>>>>>>>         
>>>>>>>>>>             
>>>>>>>>>>                 
>>>>>>>>>>                     
>>>>>>>>>>> When split and agregate the response, the order is preserved?
>>>>>>>>>>>   
>>>>>>>>>>>       
>>>>>>>>>>>           
>>>>>>>>>>>               
>>>>>>>>>>>                   
>>>>>>>>>>>                       
>>>>>>>>>> No there is no guarantee on the order because the splitted
>>>>>>>>>> messages
>>>>>>>>>> are 
>>>>>>>>>> processed in parallel which ever response comes first will be
>>>>>>>>>> appended 
>>>>>>>>>> first.
>>>>>>>>>>     
>>>>>>>>>>         
>>>>>>>>>>             
>>>>>>>>>>                 
>>>>>>>>>>                     
>>>>>>>>>>> How the system works?
>>>>>>>>>>>   
>>>>>>>>>>>       
>>>>>>>>>>>           
>>>>>>>>>>>               
>>>>>>>>>>>                   
>>>>>>>>>>>                       
>>>>>>>>>> Request message will be splitted into several messages and
>>>>>>>>>> processed
>>>>>>>>>> in 
>>>>>>>>>> parallel and the responses are aggregated depending on a message 
>>>>>>>>>> property which has been put at the splitting time.
>>>>>>>>>>
>>>>>>>>>> Basically, all the splitted messages will contain two properties
>>>>>>>>>> namely 
>>>>>>>>>> corelationID which is the parent message id and the
>>>>>>>>>> messageSequence 
>>>>>>>>>> which is something like 1/4, 2/4,...., 4/4 and so on.
>>>>>>>>>>     
>>>>>>>>>>         
>>>>>>>>>>             
>>>>>>>>>>                 
>>>>>>>>>>                     
>>>>>>>>>>> If I send two request, the ESB ads the two request toguether in
>>>>>>>>>>> the
>>>>>>>>>>> response?
>>>>>>>>>>>   
>>>>>>>>>>>       
>>>>>>>>>>>           
>>>>>>>>>>>               
>>>>>>>>>>>                   
>>>>>>>>>>>                       
>>>>>>>>>> This can be done by specifying the preservePayload attribute of
>>>>>>>>>> the 
>>>>>>>>>> aggregate mediator as true.
>>>>>>>>>>
>>>>>>>>>> Thanks,
>>>>>>>>>> Ruwan
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>> _______________________________________________
>>>>>>>>>> Esb-java-user mailing list
>>>>>>>>>> Esb-java-user at wso2.org
>>>>>>>>>> http://wso2.org/cgi-bin/mailman/listinfo/esb-java-user
>>>>>>>>>>
>>>>>>>>>>
>>>>>>>>>>     
>>>>>>>>>>         
>>>>>>>>>>             
>>>>>>>>>>                 
>>>>>>>>>>                     
>>>>>>>>>   
>>>>>>>>>       
>>>>>>>>>           
>>>>>>>>>               
>>>>>>>>>                   
>>>>>>>> _______________________________________________
>>>>>>>> Esb-java-user mailing list
>>>>>>>> Esb-java-user at wso2.org
>>>>>>>> http://wso2.org/cgi-bin/mailman/listinfo/esb-java-user
>>>>>>>>
>>>>>>>>
>>>>>>>>     
>>>>>>>>         
>>>>>>>>             
>>>>>>>>                 
>>>>>>>   
>>>>>>>       
>>>>>>>           
>>>>>>>               
>>>>>> _______________________________________________
>>>>>> Esb-java-user mailing list
>>>>>> Esb-java-user at wso2.org
>>>>>> http://wso2.org/cgi-bin/mailman/listinfo/esb-java-user
>>>>>>
>>>>>>
>>>>>>     
>>>>>>         
>>>>>>             
>>>>>   
>>>>>       
>>>>>           
>>>> _______________________________________________
>>>> Esb-java-user mailing list
>>>> Esb-java-user at wso2.org
>>>> http://wso2.org/cgi-bin/mailman/listinfo/esb-java-user
>>>>
>>>>
>>>>     
>>>>         
>>>   
>>>       
>> _______________________________________________
>> Esb-java-user mailing list
>> Esb-java-user at wso2.org
>> http://wso2.org/cgi-bin/mailman/listinfo/esb-java-user
>>
>>
>>     
>
>   




More information about the Esb-java-user mailing list