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

CounterRepository bean not registering to the bus in blueprint configuration

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.5.4
    • Fix Version/s: 2.4.9, 2.5.5, 2.6.2, 2.7
    • Component/s: Management
    • Labels:
      None
    • Estimated Complexity:
      Unknown

      Description

      CounterRepository does not register to the bus when it is configured in blueprint in the same way it is configured in spring, as

      <bean id="cr" class="org.apache.cxf.management.counters.CounterRepository">
      <property name="bus" ref="mybus" />
      </bean>

      The cause of this issue is that spring invokes CounterRepository's PostConst non-public method registerToBus, whereas blueprint can't.

      To make both work without any change to the configuration, we should remove the annotation and simply call this register method from the setBus method.

        Attachments

          Activity

            People

            • Assignee:
              ay Akitoshi Yoshida
              Reporter:
              ay Akitoshi Yoshida
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: