Roy,
Change your phase to PRE_INVOKE, and use code like
MessageExchange exchange = message
.getContent(MessageExchange.class);
//use exchange here to get NormalizedMessage
Freeman
rkiesler wrote:
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
--
Freeman Fang
------------------------
Open Source SOA: http://fusesource.com