You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Support use of @Configurable mechanism across multiple OSGi bundles [SPR-5156] #9829
has: votes-jiraIssues migrated from JIRA with more than 10 votes at the time of importin: coreIssues in core modules (aop, beans, core, context, expression)status: declinedA suggestion or change that we don't feel we should currently applytype: enhancementA general enhancement
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.
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.
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.
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...
has: votes-jiraIssues migrated from JIRA with more than 10 votes at the time of importin: coreIssues in core modules (aop, beans, core, context, expression)status: declinedA suggestion or change that we don't feel we should currently applytype: enhancementA general enhancement
Activity
spring-projects-issues commentedon Jan 22, 2009
Martin Lippert commented
I think this is a duplicate of 5401
spring-projects-issues commentedon Jan 28, 2011
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
@Configurableanymore as a workaround. I would love to see this fixed so we can have the convenience of@Configurableagain.spring-projects-issues commentedon Oct 8, 2011
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 ?
spring-projects-issues commentedon Oct 8, 2011
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.
spring-projects-issues commentedon Aug 6, 2013
Andreas Höhmann commented
Any progress in this direction???
spring-projects-issues commentedon Aug 6, 2013
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...