Uploaded image for project: 'Karaf'
  1. Karaf
  2. KARAF-4284

Blueprint Services are not creating a service instance per consuming bundle for prototype-scoped beans

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

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Won't Fix
    • 2.4.3, 3.0.5, 4.0.4
    • None
    • None
    • None
    • Oracle Java 1.7.0_79
      Camel 2.16.1

    Description

      According to the book "Enterprise OSGi In Action" (section 6.3.3), when a prototype-scoped bean is exposed as a service using Blueprint, a new instance of the service should get created for each consuming bundle.

      Services exposed in this manner in Karaf are not behaving this way - a single service instance is created and
      all consuming bundles use it. It appears the prototype scope is being ignored since the obseved behaviour is
      what is expected for singleton-scoped beans exposed as services.

      Attachments

        Activity

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

          People

            gnodet Guillaume Nodet
            hqstevenson Quinn Stevenson
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment