On Aug 27, 2012, at 11:49 AM, Sunil Bapat <[email protected]> wrote:
> I have custom in and out interceptors. I want to set a property in the in
> interceptor, which I want to access in the out interceptor. What is the
> appropriate way to do that?
Usually you would use the Exchange object for that:
message.getExchange().put("my.property", value);
The properties on the message itself are really just there for the scope of
that message.
Dan
> In SOAP Handlers, I was using SOAPMessageContext.put/get, and that was
> working. What is the equivalent in interceptors?
>
> In the in interceptor, I tried SOAPMessage.put("key", value"), and tried to
> get it using message.get("key") in the out interceptor, but always get a
> null. I also tried SOAPMessage.setContextualProperty and
> getContextualProperty, that was null as well.
>
> Thanks
> Sunil.
--
Daniel Kulp
[email protected] - http://dankulp.com/blog
Talend Community Coder - http://coders.talend.com