0 Replies Latest reply on Nov 20, 2017 5:37 AM by Ulab S

    CXF faultlistener in Wildfly

    Ulab S Newbie

      Hi,

       

      I have need to specify the custom implementation of CXF `FaultListener` in the webservice. The CXF provides following option to do that.

       

      public class MyFaultListener implements org.apache.cxf.logging.FaultListener{
      

       

      cxf-servlet.xml

      <cxf:bus>
      <cxf:properties>
      <entry key="org.apache.cxf.logging.FaultListener">
      <ref bean="myfaultListener" />
      </entry>
      </cxf:properties>
      </cxf:bus>
      

       

       

      But apparently the JBossWS-CXF stack does not take this property in to account. Infact, the cxf-servlet.xml itself is not used by the stack.

      How can I write/define the custom fault listener for CXF in wildfly ?

       

      I can see the `jboss-webservices.xml` supports  <property> but it is limited to interceptors. Is there property support for defining `FaultListener` ?

      jbossws-cxf/Constants.java at master · jbossws/jbossws-cxf · GitHub