You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@karaf.apache.org by Krzysztof Sobkowiak <kr...@gmail.com> on 2014/02/21 09:05:53 UTC

SCR

Hi

In the SCR examples you use the bnd annotations and Service-Component  
manifest header. On the other hand, in the karaf-light branch Ioannis 
uses the Felix SCR annotations and maven plugin to generate the 
metadata. Are the both approaches part of the SCR specification? If yes, 
shouldn't we have one set of annotations? Which approach is preferred?

Regards
Krzysztof

-- 
Krzysztof Sobkowiak

JEE & OSS Architect | Technical Architect @ Capgemini
Capgemini <http://www.pl.capgemini.com/> | Software Solutions Center 
<http://www.pl.capgemini-sdm.com/> | Wroclaw
e-mail: krzys.sobkowiak@gmail.com <ma...@gmail.com> | 
Twitter: @KSobkowiak

Re: SCR

Posted by David Jencks <da...@yahoo.com>.
Neither is part of the scr specification.  i recommend using the scr annotations that are part of the specification in the org.osgi.service.component.annotations package.  Bnd interprets them fine and I believe you can arrange for the bnd in the maven bundle plugin to interpret them although I haven't tried.

thanks
david jencks

On Feb 21, 2014, at 12:05 AM, Krzysztof Sobkowiak <kr...@gmail.com> wrote:

> Hi 
> 
> In the SCR examples you use the bnd annotations and Service-Component  manifest header.  On the other hand, in the karaf-light branch Ioannis uses the Felix SCR annotations and maven plugin to generate the metadata. Are the both approaches part of the SCR specification? If yes, shouldn't we have one set of annotations? Which approach is preferred? 
> 
> Regards
> Krzysztof 
> 
> -- 
> Krzysztof Sobkowiak
> 
> JEE & OSS Architect | Technical Architect @ Capgemini
> Capgemini | Software Solutions Center | Wroclaw
> e-mail: krzys.sobkowiak@gmail.com | Twitter: @KSobkowiak