Hi guys,

I have this sample I am working. hte processor works fine except that the
response sent to the client is not the output form the processor.

Here is my snippet:

<route>
        <from uri="jetty:http://0.0.0.0:9001/service?matchOnUriPrefix=true"; />
        <to uri="xslt:requestToSOAP.xsl"/>
        <wireTap uri="direct:tap"/>             
        <to uri="xslt:XMLRequestToManagerRequest.xsl"/>
        <convertBodyTo type="javax.xml.transform.dom.DOMSource" />
        <to
uri="nmr:{http://services.locator/}ServicesService:ServicesPort"/>  
        <to uri="xslt:ResponseToXMLRequest.xsl"/>       
        <to uri="direct:tap"/>
</route>

<route>
                <from uri="direct:tap"/>
                <aggregate batchSize="2" batchTimeout="5000" 
strategyRef="myStrategy">
                        
<correlationExpression><constant>true</constant></correlationExpression>
                        <to uri="direct:aggregated"/>
                </aggregate>
</route>

<route>
                <from uri="direct:aggregated"/>
                <to uri="log:Response3"/> 
</route>

What is logged in log:response3 is the aggregation performed in myStrategy
bean (which is what I expected), however, what I receive on the client that
made this request (and what I see in my network analyzer) is the output from
<to uri="xslt:ResponseToXMLRequest.xsl"/>  which is the transformed response
from nmr:{http://services.locator/}ServicesService:ServicesPort service.

I will appreciate any clue on this.
-- 
View this message in context: 
http://old.nabble.com/How-to-control-what-is-sent-to-client-tp27407409p27407409.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Reply via email to