Uploaded image for project: 'ServiceMix'
  1. ServiceMix
  2. SM-4123

Unexpected automatic EventNotifier attachment to CamelContexts

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 7.0.x
    • None
    • servicemix-camel
    • None
    • Same behavior on :

      • Camel 2.16.5 / SMX 7.0.1
      • Camel 2.17.0.redhat-630187 on Fuse fabric8-karaf-1.2.0.redhat-630187

    Description

      We try to provide a shared EventNotifier as an exposed OSGi service from a bundle. This bundle has a simple Java class that implements the EventNotifier interface, and a blueprint to expose it as a service.

      Other bundles are designed with a simple blueprint with a reference to the previous service, and a CamelContext and its routes.

      Two issues 

      • Wwith or without a reference to the service in the blueprint, all the CamelContext are attached to the EventNotifier.
      • All other EventNotifier that may be instantiated by a bundle (bean in the blueprint), are ignored, not registered, and they don't receive events.

      It seems that the simple presence of the EventNotifier "as a service" registers it automatically in all the deployed CamelContext.

      Attachments

        Activity

          People

            jbonofre Jean-Baptiste Onofré
            ephemeris Ephemeris Lappis
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: