Freeman, My cxf-bc interceptor is set on the RECEIVE phase, and the following statements throws a ClassCastException:
NormalizedMessage norMsg = (NormalizedMessage)exchange.getInMessage(); Looking at the debugger, exchange.getInMessage() returns a org.apache.cxf.message.MessageImpl, which does not implement the NormalizedMessage JBI interface. Is there a different phase I should use this interceptor in to get a NormalizedMessage from the exchange? Thanks, -- Roy Freeman Fang wrote: > > Hi, > You can set properties to the NormalizedMessage on cxf bc and retrieve > it from cxf se. > Take a look at [1] where we already have discussed this issue, you may > need write interceptor to set/retrieve property yourself > [1]http://cwiki.apache.org/SM/discussion-forums.html#nabble-td22581230%7Ca22581230 > > Freeman > > rkiesler wrote: >> I am trying to pass some information captured in a cxf-bc consumer >> interceptor onto a cxf-se endpoint interceptor, but am not able to find >> any >> common context -- the interceptor execute on separate threads (so no >> ThreadLocal stuff), the Message object is different, as is the Exchange >> and >> DeliveryChannel objects. >> >> Is there some kind of a context object where we can set properties on the >> bc >> side and retrieve them on the se side? >> >> Thanks, >> -- >> Roy >> > > > -- > Freeman Fang > ------------------------ > Open Source SOA: http://fusesource.com > > > -- View this message in context: http://www.nabble.com/Can-cxf-bc-and-cxf-se-interceptors-share-context--tp22993688p23024517.html Sent from the ServiceMix - User mailing list archive at Nabble.com.
