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&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.