Hi, On Mon, Feb 27, 2012 at 2:48 PM, Ruwan Linton <[email protected]>wrote:
> > > > Synapse MessageContext (which is different from Axis2 MessageContext) is > > built for every request received by Synapse and remains until the > response > > for that message is sent back to the client. > > > True. > > > > This means that, when a single > > request to Synapse is considered, same message context is used for it's > in > > sequence and out sequence. > > > > Sadeep, it is not. Even though the life-cycle of the message context > created at the message reception lasts until the response to that message > is sent back to the caller, it doesn't mean that the same message context > is used for in and out mediation. The synapse message context used for the > out-sequence is *different* from the one used for the in-sequence but they > relates (like in the axis2 in and out message contexts). However we copy > certain things from the synapse in message context to the out message > context, like properties, and few context attributes. > > In effect, if you set a property on the in-sequence at synapse scope (which > is default) you will be able to retrieve the same on the out-sequence. > IIRC, even axis2 scope would be the same as we copy axis2 message context > properties, except for few (system used) properties and options. > > Thanks Ruwan for the clarification. > Thanks, > Ruwan > > -- > Ruwan Linton > Member, Apache Software Foundation; http://www.apache.org > Director of Engineering; http://adroitlogic.org > > phone: +94 11 282 7532 > email: [email protected]; cell: +94 77 341 3097 > blog: http://blog.ruwan.org > linkedin: http://www.linkedin.com/in/ruwanlinton > google: http://www.google.com/profiles/ruwan.linton > tweet: http://twitter.com/ruwanlinton > -- Sadeep Jayasumana ** Email: [email protected]**** Mobile: +61 4 1468 8521
