camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ranabroto <ranabroto.gh...@globalcharge.com>
Subject Re: Camel carry the POJO to each request
Date Thu, 20 Jul 2017 13:02:25 GMT
Can you not keet that parts in some property and get it back later when you
need it like below?

<bean id="_processRequest" ref="soapDoRead"
method="generateRequest(Parts)"/>
<setProperty propertyName="storePart">
            <simple>${body}</simple>
</setProperty>
<marshal id="_marshal_doreaddetails" ref="soapFormat"/>
<to id="_to1"
uri="cxf:bean:serviceEndpoint?dataFormat=MESSAGE&amp;defaultOperationName=Read"/>
<unmarshal id="_unmarshal_doreaddetails" ref="soapFormat"/>
<bean id="_bean_validate" method="validate" ref="validParts"/>  
<choice>
<when>
    <simple>${headers.OPERATION} == 'C'</simple>
         <bean id="_bean1"
method="createSoapBody(${property.storePart},ReadResponse)"
ref="soapRequestPojo"/>
</when>
</choice>



--
View this message in context: http://camel.465427.n5.nabble.com/Camel-carry-the-POJO-to-each-request-tp5807481p5807514.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Mime
View raw message