"It would be faithless now to say farewell." (FotR, p. 419)
http://marcels-javanotes.blogspot.com/
Marcel Dullaart wrote:Congrats with the release of your book about OSGi.
Marcel Dullaart wrote:What do you think about the Spring DM implementation versus the JSR-291 specification?
Follow the JCP standard or use alternative API's such as Spring DM?
"It would be faithless now to say farewell." (FotR, p. 419)
http://marcels-javanotes.blogspot.com/
Marcel Dullaart wrote:
I was under the impression that Spring DM came with extensions not covered by the spec, that originated my question.
Me, as an architect, usually prefer to follow standards, striving to make the actual business code vendor independent as much as can be.
Augusto Sellhorn wrote:You know, I really get confused between Spring DM and Blueprint.
In karaf (more specifically Apache servicemix) bundles have 3 states.
1. OSGi bundle state (ex: Active)
2. Blueprint state (I've only seen this either empty or Created)
3. Spring state (I've seen Active and Failed)
It gets a bit confusing when things are OK in the bundle state (Active) but the Spring state is (failed).
The only time I'm aware I'm using blueprint is when extending shell commands (OSGI-INF/blueprint), I'm assuming every time I have a spring context (META-INF/spring)in OSGi that's Spring DM but you seem to imply Blueprint has integration with Spring ...
Augusto Sellhorn wrote:The only time I'm aware I'm using blueprint is when extending shell commands (OSGI-INF/blueprint), I'm assuming every time I have a spring context (META-INF/spring)in OSGi that's Spring DM but you seem to imply Blueprint has integration with Spring ...
Augusto Sellhorn wrote:Yeah, it's a bit confusing, although I think that's more of a karaf thing.
I do with that OSGi had a state that differentiated between "runnable" bundles (have an Activator) vs API bundles (with no activator). It's kind of weird that you can "start" bundles that don't really "start".
Richard S. Hall wrote:
Augusto Sellhorn wrote:The only time I'm aware I'm using blueprint is when extending shell commands (OSGI-INF/blueprint), I'm assuming every time I have a spring context (META-INF/spring)in OSGi that's Spring DM but you seem to imply Blueprint has integration with Spring ...
It seems you are getting confused between Spring and Spring DM. Spring != Spring DM.
It is more accurate to say Spring DM is basically equivalent to Blueprint. Spring DM provided the starting point for creating the OSGi Blueprint spec, so they are not identical, but very similar.
What is Blueprint (or Spring DM, for that matter)? It integrates the Spring bean model with the OSGi platform. It allows you to package Spring beans inside bundles and for Spring beans to publish their interfaces into the OSGi service registry and to be injected with services from the OSGi service registry. That's pretty much it.
Augusto Sellhorn wrote:
That's what I'm doing, in my spring context I'm registering OSGi services like this ...
Is this Spring DM or Blueprint? I'm thinking it's Spring DM, since the state of this bundle under the "spring" column shows as failed if there's an error in it.
Augusto Sellhorn wrote:
Richard S. Hall wrote:
Augusto Sellhorn wrote:The only time I'm aware I'm using blueprint is when extending shell commands (OSGI-INF/blueprint), I'm assuming every time I have a spring context (META-INF/spring)in OSGi that's Spring DM but you seem to imply Blueprint has integration with Spring ...
It seems you are getting confused between Spring and Spring DM. Spring != Spring DM.
It is more accurate to say Spring DM is basically equivalent to Blueprint. Spring DM provided the starting point for creating the OSGi Blueprint spec, so they are not identical, but very similar.
What is Blueprint (or Spring DM, for that matter)? It integrates the Spring bean model with the OSGi platform. It allows you to package Spring beans inside bundles and for Spring beans to publish their interfaces into the OSGi service registry and to be injected with services from the OSGi service registry. That's pretty much it.
That's what I'm doing, in my spring context I'm registering OSGi services like this ...
Is this Spring DM or Blueprint? I'm thinking it's Spring DM, since the state of this bundle under the "spring" column shows as failed if there's an error in it.
30 seconds to difuse a loaf of bread ... here, use this tiny ad:
We need your help - Coderanch server fundraiser
https://coderanch.com/wiki/782867/Coderanch-server-fundraiser
|