« Return to Thread: MuleMessage properties during all journey through synchronous endpoints

MuleMessage properties during all journey through synchronous endpoints

by Anatoli Kuzmin-2 :: Rate this Message:

Reply to Author | View in Thread

Hi

Can my message save custom properties if I use synchronous endpoints during all journey?
I want to set custom properties in the first transformer T1 (using message.setStringProperty("SessionID",ctSession);)
and get it in responseTransformer T2.

Unfortunately message had have the same unique id but my custom properties was lost.
Also I tried to set correlationId - the same. 


  <http:endpoint name="clientEndpoint" address="http://localhost:4019
" synchronous="true"/>
    <http:endpoint name="serverEndpoint" address="http://localhost:4020" synchronous="true"/>

    <custom-transformer class="Trans1" name="T1"/>
    <custom-transformer class="Trans2" name="T2"/>

    <model name="main">
        <service name="HttpProxyService">
            <inbound>
                <inbound-endpoint ref="clientEndpoint" />
            </inbound>
            <outbound>
                <pass-through-router>
                    <outbound-endpoint ref="serverEndpoint" transformer-refs="T1"
                                       responseTransformer-refs="T2">
                    </outbound-endpoint>
                </pass-through-router>
            </outbound>
        </service>


--
Best regards,
Anatoli Kuzmin

 « Return to Thread: MuleMessage properties during all journey through synchronous endpoints