Camel
  1. Camel
  2. CAMEL-4731

simpler wiring of Camel CXF endpoints to named CXF buses in spring

    Details

    • Type: Improvement Improvement
    • Status: Resolved
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: 2.8.3
    • Fix Version/s: 2.8.4, 2.9.0
    • Component/s: camel-cxf
    • Labels:
      None
    • Patch Info:
      Patch Available
    • Estimated Complexity:
      Unknown

      Description

      I think the current wiring configuration (used in those camel-cxf tests) for wiring CXF endpoints to specific cxf bus instances using spring is cumbersome and not appealing. So, I would like to suggest a patch for this problem.

      To start, here is how the the current configuration convention looks like:
      <beans ...>
      <bean id="cxf1" class="org.apache.cxf.bus.extension.ExtensionManagerBus"/>
      <bean id="cxf2" class="org.apache.cxf.bus.extension.ExtensionManagerBus"/>

      <cxfcore:bus bus="cxf1">
      ...
      </cxfcore:bus>

      <cxfcore:bus bus="cxf2">
      ....
      </cxfcore:bus>

      <cxf:cxfEndpoint id="routerEndpoint"
      serviceClass="..."
      ...
      bus="cxf1"/>

      <cxf:cxfEndpoint id="serviceEndpoint"
      serviceClass="..."
      ...
      bus="cxf2"/>
      </beans>

      I would like to get rid of the indirect wiring of the CXF endpoints using ExtensionManagerBus beans. The attached patch for camel/trunk should directly wire the endpoints to the named buses. I would appreciate if you can look at it.

      Thank you.

      regards, aki

      1. patch.txt
        4 kB
        Akitoshi Yoshida

        Issue Links

          Activity

          Akitoshi Yoshida created issue -
          Akitoshi Yoshida made changes -
          Field Original Value New Value
          Attachment patch.txt [ 12505785 ]
          Daniel Kulp made changes -
          Assignee Daniel Kulp [ dkulp ]
          Daniel Kulp made changes -
          Link This issue depends on CXF-3947 [ CXF-3947 ]
          Claus Ibsen made changes -
          Fix Version/s 2.9.1 [ 12319191 ]
          Fix Version/s 2.9.0 [ 12316374 ]
          Fix Version/s 2.8.4 [ 12319072 ]
          Daniel Kulp made changes -
          Status Open [ 1 ] Resolved [ 5 ]
          Fix Version/s 2.8.4 [ 12319072 ]
          Fix Version/s 2.9.0 [ 12316374 ]
          Fix Version/s 2.9.1 [ 12319191 ]
          Resolution Fixed [ 1 ]
          Gavin made changes -
          Link This issue depends on CXF-3947 [ CXF-3947 ]
          Gavin made changes -
          Link This issue depends upon CXF-3947 [ CXF-3947 ]

            People

            • Assignee:
              Daniel Kulp
              Reporter:
              Akitoshi Yoshida
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development