Uploaded image for project: 'Red Hat Fuse'
  1. Red Hat Fuse
  2. ENTESB-10883

Expose CXF bus as an OSGi Service and refer it in other bundles

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • fuse-7.5-ER1
    • fuse-7.3
    • Camel
    • None
    • % %
    • Hide
      • Download attached zip files.
      • Deploy camel-cxf-contract-first in the Fuse server, this bundle will make the OSGi service.
      • Deploy camel-cxf-contract-first-consume in the Fuse server, this bundle will throw the Cast Exception.
      Show
      Download attached zip files. Deploy camel-cxf-contract-first in the Fuse server, this bundle will make the OSGi service. Deploy camel-cxf-contract-first-consume in the Fuse server, this bundle will throw the Cast Exception.
    • Fuse 7.5 Sprint 50 - Dev #1

      Trying to expose a CXFEndpoint as an OSGi service is correctly done, but when that service is referenced it can not be done, as per there is a cast Exception:

      Caused by: java.lang.ClassCastException: Cannot cast Proxy15066ec0_4973_4fcc_84f5_0f61b0375df7 to org.apache.camel.component.cxf.CxfEndpoint
              at java.lang.Class.cast(Class.java:3369) ~[?:?]
              at org.apache.camel.blueprint.BlueprintContainerRegistry.lookupByNameAndType(BlueprintContainerRegistry.java:65) ~[?:?]
      

      This functionality is required to have a shared configuration (security, interceptors, etc.) cross multiples bundles in the server.

              yfang@redhat.com Freeman(Yue) Fang
              emunoz@redhat.com Elkin Dario Munoz Duarte
              Viliam Kasala Viliam Kasala
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: