3 Replies Latest reply on Jun 12, 2009 1:27 PM by Roy Kiesler

    How to get a reference to CxfBcProvider from an interceptor?

    Roy Kiesler Newbie

      In my cxfbc consumer interceptor, I use the following code:

       

      Exchange exchange = message.getExchange();

      CxfBcConsumer bcc = (CxfBcConsumer)exchange.get(CxfBcConsumer.class);

       

      In my provider interceptor, I tried a similar approach, i.e.:

       

      Exchange exchange = message.getExchange();

      CxfBcProvider bcp = (CxfBcProvider)exchange.get(CxfBcProvider.class);

       

      However, this code yields a null.

       

      Insights are appreciated.

      --

      Roy