|Value of Blueprint when using Spring? [message #881753]
||Tue, 05 June 2012 07:51
| Dieter Van de Walle
Registered: January 2012
I have a question concerning using Blueprint and Spring.
If I am not mistaken, the value of Blueprint is in its standardized format: if you write a Blueprint application context, your bundle will deploy on all Blueprint-enabled containers.
However, many people will use Spring features in their bundle (eg. transactions), requiring some Spring bundles to be present. I am presuming it is not possible (?) for Spring to interact with beans that are instantiated via another Blueprint provider than Eclipse Gemini, so you need to use Eclipse Gemini as a Blueprint provider.
This means when using any of the Spring extended features, you are automatically tied to Eclipse Gemini as Blueprint provider right? So then what is the value of Blueprint in this situation? Does Blueprint still add some value to your bundle if you depend on Spring, and therefore also on the Eclipse Gemini Blueprint provider?
In our situation, we rely heavily on Spring extended features. As far as I can see, this means we have a hard dependency on Eclipse Gemini Blueprint.
I don't think it is possible or feasible to use another Blueprint provider in combination with the Spring features. Also, you will almost always want to refer to Blueprint instantiated beans in your extended Spring configuration (eg. instantiate a bean using Blueprint, and designate it as transactionmanager using Spring XML config), which I don't think is possible if it is not also Spring/Gemini doing the Blueprint stuff.
So unless it is possible to refer to beans instantiated with another Blueprint implementation in Spring, I don't think Blueprint has any added value in our situation?
We have now decided to use the Blueprint syntax/namespace embedded in a Spring application context. But as far as I see the only advantage this offers us is using a standardized, future-proof syntax to specify beans instead of having to learn the Spring-specific OSGI syntax.
I am very curious on your views/comments on this...
Powered by FUDForum
. Page generated in 0.02592 seconds