Uploaded image for project: 'JBoss Web Services'
  1. JBoss Web Services
  2. JBWS-4079

Extend web service subsystem to configure cxf.management properties outside endpoint-config

    XMLWordPrintable

Details

    • Feature Request
    • Resolution: Obsolete
    • Major
    • None
    • jbossws-cxf-5.2.0.Final
    • jbossws-cxf
    • None

    Description

      Presently for configuring the cxf.management properties, we can do this using jboss-webservice.xml file, https://docs.jboss.org/author/display/JBWS/Apache+CXF+integration#ApacheCXFintegration-MBeanmanagement as these properties are read at the deployment time.

      Since, the cxf.management properties are set at Bus level, we can look to extend those properties to be configured outside the endpoint-config and client-config. We can look to have a central configuration for this in the standalone.xml file as the below:

      <subsystem xmlns="urn:jboss:domain:webservices:1.2">
                  <modify-wsdl-address>true</modify-wsdl-address>
                  <wsdl-host>jbossws.undefined.host</wsdl-host>
                  <endpoint-config name="Standard-Endpoint-Config">
                      <property name="cxf.management.enabled" value="true"/>
                      <property name="cxf.management.installResponseTimeInterceptors" value="true"/>
                      <property name="cxf.features" value="org.apache.cxf.management.interceptor.ResponseTimeFeature"/>
                  </endpoint-config>
                  <endpoint-config name="Recording-Endpoint-Config">
                      <pre-handler-chain name="recording-handlers" protocol-bindings="##SOAP11_HTTP ##SOAP11_HTTP_MTOM ##SOAP12_HTTP ##SOAP12_HTTP_MTOM">
                          <handler name="RecordingHandler" class="org.jboss.ws.common.invocation.RecordingServerHandler"/>
                      </pre-handler-chain>
                  </endpoint-config>
                  <client-config name="Standard-Client-Config">
                      <property name="cxf.management.enabled" value="true"/>
                      <property name="cxf.management.installResponseTimeInterceptors" value="true"/>
                      <property name="cxf.features" value="org.apache.cxf.management.interceptor.ResponseTimeFeature"/>
                  </client-config>
              </subsystem> 
      

      Attachments

        Activity

          People

            Unassigned Unassigned
            rhn-support-vgohel Viral Gohel
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: