« Return to Thread: Help!! Mule Aggregator Issue

Re: Help!! Mule Aggregator Issue

by karunasri kapu :: Rate this Message:

Reply to Author | View in Thread

You are using a multicasting router with synchronous outbound endpoints. This means that each endpoint processes the original message sequentially, and the results are collected into a single reply: a List of MuleMessages. This List is then returned to the http:inbound-endpoint, which tries to transform the result to an HttpResponse. This is not allowed.

You first need to transform the aggregated result. One way to do this is to add a responseTransformer to the inbound endpoint:

<service name="SendAggregatedRequestService">
<inbound>
<http:inbound-endpoint
address="http://localhost:8080/Profile/AggregatedConsumerProfileDetails"
synchronous="true" responseTransformer-refs="myCustomerTransformer">
</http:inbound-endpoint>
</inbound>

<outbound>
<multicasting-router>
<vm:outbound-endpoint path="ConsumerHttp"
synchronous="true" />
<vm:outbound-endpoint path="VideoHttp"
synchronous="true" />

</multicasting-router>
</outbound>

</service>

HTH

Regards,
Mario

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

    http://xircles.codehaus.org/manage_email


 « Return to Thread: Help!! Mule Aggregator Issue