3 Replies Latest reply on May 16, 2012 3:55 AM by Alessio Soldano

    Problem: Configuring JBossWS-CXF Interceptors for all endpoints

    Mykola Kavf Newbie

      Hi,

       

      I am currently faced an issue with configuring JBossWS-CXF Interceptors. I need add some interceptors that will apply to all endpoints.

      But if we have any content in META-INF/jbossws-cxf.xml then this file copied as is and no endpoints definitions added to this file in deploy time.

       

      I am using JBossWS-CXF 3.4.0 on JbossAS 5.1.

       

      Before that we were using JBossWS-Native and in standard-jaxws-endpoint-config we had:

       

       

      <endpoint-config>
                          <config-name>WebService Endpoint</config-name>
                          <pre-handler-chains>
                                    <javaee:handler-chain>
                                              <javaee:protocol-bindings>##SOAP11_HTTP</javaee:protocol-bindings>
                                              <javaee:handler>
                                                        <javaee:handler-name>Handler1</javaee:handler-name>
                                                        <javaee:handler-class>org.some.namespace.Handler1</javaee:handler-class>
                                              </javaee:handler>
                                    </javaee:handler-chain>
                                    </pre-handler-chains>
                                    <post-handler-chains>
                                              <javaee:handler-chain>
                                                        <javaee:protocol-bindings>##SOAP11_HTTP</javaee:protocol-bindings>
                                                        <javaee:handler>
                                                                  <javaee:handler-name>Handler2</javaee:handler-name>
                                                                  <javaee:handler-class>org.some.namespace.Handler2</javaee:handler-class>
                                                        </javaee:handler>
                                              </javaee:handler-chain>
                                    </post-handler-chains>
                          </endpoint-config>
      
      

       

      And it worked for all webservices. How do I achieve similar result using CXF and Interceptors?

       

      Thanks.