Hi Richard, Since you mentioned being a OSGi/Karaf beginner, if you’re not bound to specific Blueprint or Spring features, I strongly advise you to have a look at the other component / DI frameworks that exist for OSGi, e.g. Declarative Services or iPOJO. From my perspective, while blueprint has strong integration features and is widely known, it does try to hide the dynamics behind the OSGi Service layer rather than leveraging it. Moreover, I feel that the need to write XML to define components is a hustle (think: refactoring and typing errors). I try to avoid using blueprint at all. And last but not least: You can mix and match different component frameworks as they can perfectly coexist.
Regards, Benjamin From: Sobkowiak, Krzysztof [mailto:[email protected]] Sent: Donnerstag, 18. September 2014 11:07 To: [email protected] Subject: Re: Spring vs Blueprint Hi I think you will use Spring DM if you want to use Spring in your bundles - especially if you need to use any Spring schemes in your configuration. Best regards Krzysztof On 18.09.2014 10:58, Mark Doyle wrote: I think Spring DM is no longer active and I that blueprint (which is an OSGi standard) was inspired by DM. That would explain why they are so similar. I'd use a blueprint implementation and I'm not sure why one would use DM any more. On 18 September 2014 10:53, Richard Snowden <[email protected]<mailto:[email protected]>> wrote: Hi all, I just played around a little bit creating and consuming OSGi services. First with Blueprint and then with Spring. It seems there's no big difference between those two. For me (as a beginner in OSGi / Karaf) Blueprint context files look smaller and cleaner, so I'd like to focus my efforts on Blueprint and forget about Spring. Is this a bad idea? What is the main difference between Spring and Blueprint? Regards, Richard -- Krzysztof Sobkowiak JEE & OSS Architect | Technical Architect @ Capgemini | Committer @ ASF Capgemini<http://www.pl.capgemini.com/> | Software Solutions Center<http://www.pl.capgemini-sdm.com/> | Wroclaw e-mail: [email protected]<mailto:[email protected]> | Twitter: @KSobkowiak Calendar: http://goo.gl/yvsebC
