Uploaded image for project: 'CXF'
  1. CXF
  2. CXF-6539

Performance counters through MBeans doesn't work.

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Not A Problem
    • 3.1.1
    • None
    • Management
    • None
    • JDK 1.8

    • Unknown

    Description

      We are creating the InstrumentationManager according to documentation and this all works fine in CXF 2.7.12.

      <import resource="classpath:META-INF/cxf/cxf.xml"/>
      ...
       
      <bean id="org.apache.cxf.management.InstrumentationManager"
        class="org.apache.cxf.management.jmx.InstrumentationManagerImpl">
        <property name="enabled" value="true" />
        <property name="bus" ref="cxf" />
        <property name="usePlatformMBeanServer" value="true" />
      </bean>
      

      But after a little debugging, I noticed that in CXF 3.1.1 the 'register' method in InstrumentationManagerImp is deprecated and the code has been moved to the end of the 'init' method though there is a difference. CXF 2.7.12 had:

      bus.setExtension(this, InstrumentationManager.class);
      

      but CXF 3.1.1 has:

      this.bus.setExtension(this, BusLifeCycleListener.class);
      

      Could this be the cause that performance counters through MBeans aren't working. Or do we need to change the configuration?

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            Unassigned Unassigned
            edga Edwin
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment