You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@karaf.apache.org by Krzysztof Sobkowiak <kr...@gmail.com> on 2016/10/16 23:03:40 UTC

Managed Service & Managed Service factory

Hi

Are there any samples how to implement correctly the Managed Service and Managed Service Factory / Component Factory using the OSGi Declarative Services Annotations? Something like in https://github.com/apache/karaf/tree/master/scr/examples/managed-service and https://github.com/apache/karaf/tree/master/scr/examples/component-factory but using the org.osgi.service.component.annotations annotations.

Btw. are there any samples how to do this correctly with Blueprint?

Kindly regards
Krzysztof




-- 
Krzysztof Sobkowiak (@ksobkowiak)

JEE & OSS Architect, Integration Architect
Apache Software Foundation Member (http://apache.org/)
Apache ServiceMix Committer & PMC Member (http://servicemix.apache.org/)
Senior Solution Architect @ Capgemini SSC (http://www.capgeminisoftware.pl/)

Re: Managed Service & Managed Service factory

Posted by Johan Edstrom <se...@gmail.com>.
This library drives completely factory driven systems, it is fun stuff to use.

/je

> On Oct 16, 2016, at 5:09 PM, James Carman <ja...@carmanconsulting.com> wrote:
> 
> We have a little library we use called Eos to do ManagedServiceFactories
> (ManagedService is a bit easier):
> 
> https://github.com/savoirtech/eos
> 
> The "itest" module(s) have an example of how to wire it up using Blueprint:
> 
> https://github.com/savoirtech/eos/blob/master/itest/bundle/src/main/resources/OSGI-INF/blueprint/itest-bundle.xml
> 
> It's not well-documented at the moment, but it is in Maven Central, so
> you're definitely welcome to it.  There are also some nice superclasses for
> dealing with the "whiteboard pattern" in there that we use all over the
> place.
> 
> Thanks,
> 
> James
> 
> 
> 
> On Sun, Oct 16, 2016 at 7:03 PM Krzysztof Sobkowiak <
> krzys.sobkowiak@gmail.com> wrote:
> 
>> Hi
>> 
>> Are there any samples how to implement correctly the Managed Service and
>> Managed Service Factory / Component Factory using the OSGi Declarative
>> Services Annotations? Something like in
>> https://github.com/apache/karaf/tree/master/scr/examples/managed-service
>> and
>> https://github.com/apache/karaf/tree/master/scr/examples/component-factory
>> but using the org.osgi.service.component.annotations annotations.
>> 
>> Btw. are there any samples how to do this correctly with Blueprint?
>> 
>> Kindly regards
>> Krzysztof
>> 
>> 
>> 
>> 
>> --
>> Krzysztof Sobkowiak (@ksobkowiak)
>> 
>> JEE & OSS Architect, Integration Architect
>> Apache Software Foundation Member (http://apache.org/)
>> Apache ServiceMix Committer & PMC Member (http://servicemix.apache.org/)
>> Senior Solution Architect @ Capgemini SSC (
>> http://www.capgeminisoftware.pl/)
>> 


Re: Managed Service & Managed Service factory

Posted by James Carman <ja...@carmanconsulting.com>.
We have a little library we use called Eos to do ManagedServiceFactories
(ManagedService is a bit easier):

https://github.com/savoirtech/eos

The "itest" module(s) have an example of how to wire it up using Blueprint:

https://github.com/savoirtech/eos/blob/master/itest/bundle/src/main/resources/OSGI-INF/blueprint/itest-bundle.xml

It's not well-documented at the moment, but it is in Maven Central, so
you're definitely welcome to it.  There are also some nice superclasses for
dealing with the "whiteboard pattern" in there that we use all over the
place.

Thanks,

James



On Sun, Oct 16, 2016 at 7:03 PM Krzysztof Sobkowiak <
krzys.sobkowiak@gmail.com> wrote:

> Hi
>
> Are there any samples how to implement correctly the Managed Service and
> Managed Service Factory / Component Factory using the OSGi Declarative
> Services Annotations? Something like in
> https://github.com/apache/karaf/tree/master/scr/examples/managed-service
> and
> https://github.com/apache/karaf/tree/master/scr/examples/component-factory
> but using the org.osgi.service.component.annotations annotations.
>
> Btw. are there any samples how to do this correctly with Blueprint?
>
> Kindly regards
> Krzysztof
>
>
>
>
> --
> Krzysztof Sobkowiak (@ksobkowiak)
>
> JEE & OSS Architect, Integration Architect
> Apache Software Foundation Member (http://apache.org/)
> Apache ServiceMix Committer & PMC Member (http://servicemix.apache.org/)
> Senior Solution Architect @ Capgemini SSC (
> http://www.capgeminisoftware.pl/)
>

Re: Managed Service & Managed Service factory

Posted by Guillaume Nodet <gn...@apache.org>.
We should definitely move them to the OSGi DS annotations.
However, they are mostly the same if you rename the package.

2016-10-17 1:03 GMT+02:00 Krzysztof Sobkowiak <kr...@gmail.com>:

> Hi
>
> Are there any samples how to implement correctly the Managed Service and
> Managed Service Factory / Component Factory using the OSGi Declarative
> Services Annotations? Something like in https://github.com/apache/
> karaf/tree/master/scr/examples/managed-service and
> https://github.com/apache/karaf/tree/master/scr/examples/component-factory
> but using the org.osgi.service.component.annotations annotations.
>
> Btw. are there any samples how to do this correctly with Blueprint?
>
> Kindly regards
> Krzysztof
>
>
>
>
> --
> Krzysztof Sobkowiak (@ksobkowiak)
>
> JEE & OSS Architect, Integration Architect
> Apache Software Foundation Member (http://apache.org/)
> Apache ServiceMix Committer & PMC Member (http://servicemix.apache.org/)
> Senior Solution Architect @ Capgemini SSC (http://www.capgeminisoftware.
> pl/)
>



-- 
------------------------
Guillaume Nodet
------------------------
Red Hat, Open Source Integration

Email: gnodet@redhat.com
Web: http://fusesource.com
Blog: http://gnodet.blogspot.com/