Skip to content

Support use of @Configurable mechanism across multiple OSGi bundles [SPR-5156] #9829

Closed

Description

@spring-projects-issues

Wojciech Durczyński opened SPR-5156 and commented

In OSGI @Configurable mechanism works well only when used in one bundle.
If there is <context:spring-configured /> in application contexts of more then one bundle, the AnnotationBeanConfigurerAspect (single instance) is injected with two different BeanConfigurerSupport objects in non deterministic order.
Bundle whose BeanFactory is injected to aspect most recently works well - others don't work at all.

Is there any work around for this problem?


Affects: 2.5.5

Issue Links:

15 votes, 20 watchers

Activity

  1. spring-projects-issues commented on Jan 22, 2009

    @spring-projects-issues
    CollaboratorAuthor

    Martin Lippert commented

    I think this is a duplicate of 5401

  2. spring-projects-issues commented on Jan 28, 2011

    @spring-projects-issues
    CollaboratorAuthor

    Wim Deblauwe commented

    We are having the same problem in a plugin mechanism we created ourselves based on Spring. For the moment, we changed our plugins to no longer use @Configurable anymore as a workaround. I would love to see this fixed so we can have the convenience of @Configurable again.

  3. spring-projects-issues commented on Oct 8, 2011

    @spring-projects-issues
    CollaboratorAuthor

    Wim Deblauwe commented

    Both this issue and #10074 are resolved as duplicate without any fix version. Does this mean that the issue will not be solved at all ?

  4. spring-projects-issues commented on Oct 8, 2011

    @spring-projects-issues
    CollaboratorAuthor

    Chris Beams commented

    Sorry, that was actually a mistake. I meant to slate one of these issues for a backlog, but ended up resolving them both as duplicates of each other in the end.

  5. spring-projects-issues commented on Aug 6, 2013

    @spring-projects-issues
    CollaboratorAuthor

    Andreas Höhmann commented

    Any progress in this direction???

  6. spring-projects-issues commented on Aug 6, 2013

    @spring-projects-issues
    CollaboratorAuthor

    Charlie Mordant commented

    To what I know Spring is not OSGI anymore (in 3.2, Manifests aren't generated anymore).
    You can try Gemini or Aries projects to have DI (PAX-CDI for annotations), and Virgo to have a nice Configurable annotation support.

    It would be nice to have a full Spring support for OSGI out of the box, but for the time I'm following this, my hope is decreasing from day to day...

  7. added
    status: declined
    type: enhancement
    in: core
    has: votes-jira
    on Jan 11, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

has: votes-jirain: corestatus: declinedtype: enhancement

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions