<p dir="auto"><strong><a href="https://jira.spring.io/secure/ViewProfile.jspa?name=costin" rel="nofollow">Costin Leau</a></strong> opened <strong><a href="https://jira.spring.io/browse/SPR-5401?redirect=false" rel="nofollow">SPR-5401</a></strong> and commented</p>
<p dir="auto">Reported at:<br>
<a href="http://forum.springframework.org/showthread.php?t=59567" rel="nofollow">http://forum.springframework.org/showthread.php?t=59567</a><br>
<a href="http://forum.springframework.org/showthread.php?t=65205" rel="nofollow">http://forum.springframework.org/showthread.php?t=65205</a></p>
<p dir="auto">"The aspect "org.springframework.beans.factory.aspectj.Annotat ionBeanConfigurerAspect" is instantiated only once as singleton. Spring calls the setter for the Beanfactory property of the Aspect for each ApplicationContext with context:spring-configured entry. The last one who gets initialized wins. The Beans from the others Contexts can't get initialized."</p>
<hr>
<p dir="auto"><strong>Affects:</strong> 2.5.5</p>
<p dir="auto"><strong>Issue Links:</strong></p>
<ul dir="auto">
<li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="398090953" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/9829" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/9829/hovercard" href="https://github.com/spring-projects/spring-framework/issues/9829">#9829</a> Support use of <code class="notranslate">@Configurable</code> mechanism across multiple OSGi bundles (<em><strong>"duplicates"</strong></em>)</li>
<li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="398090953" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/9829" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/9829/hovercard" href="https://github.com/spring-projects/spring-framework/issues/9829">#9829</a> Support use of <code class="notranslate">@Configurable</code> mechanism across multiple OSGi bundles (<em><strong>"is duplicated by"</strong></em>)</li>
</ul>
<p dir="auto">5 votes, 7 watchers</p>
<p dir="auto"><strong><a href="https://jira.spring.io/secure/ViewProfile.jspa?name=avatah" rel="nofollow">Wojciech Durczyński</a></strong> opened <strong><a href="https://jira.spring.io/browse/SPR-5156?redirect=false" rel="nofollow">SPR-5156</a></strong> and commented</p>
<p dir="auto">In OSGI <code class="notranslate">@Configurable</code> mechanism works well only when used in one bundle.<br>
If there is &lt;context:spring-configured /&gt; in application contexts of more then one bundle, the AnnotationBeanConfigurerAspect (single instance) is injected with two different BeanConfigurerSupport objects in non deterministic order.<br>
Bundle whose BeanFactory is injected to aspect most recently works well - others don't work at all.</p>
<p dir="auto">Is there any work around for this problem?</p>
<hr>
<p dir="auto"><strong>Affects:</strong> 2.5.5</p>
<p dir="auto"><strong>Issue Links:</strong></p>
<ul dir="auto">
<li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="398092675" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/10074" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/10074/hovercard" href="https://github.com/spring-projects/spring-framework/issues/10074">#10074</a> AnnotationBeanConfigurerAspect is created as a singleton and cannot be shared across multiple contexts (<em><strong>"duplicates"</strong></em>)</li>
<li><a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="398092675" data-permission-text="Title is private" data-url="https://github.com/spring-projects/spring-framework/issues/10074" data-hovercard-type="issue" data-hovercard-url="/spring-projects/spring-framework/issues/10074/hovercard" href="https://github.com/spring-projects/spring-framework/issues/10074">#10074</a> AnnotationBeanConfigurerAspect is created as a singleton and cannot be shared across multiple contexts (<em><strong>"is duplicated by"</strong></em>)</li>
</ul>
<p dir="auto">15 votes, 20 watchers</p>