Re: [osgi-dev] Double config

2018-07-12 Thread Fauth Dirk (AA-AS/EIS2-EU) via osgi-dev
If it is a bouncing problem, than you could also try to configure the behavior using the property ds.delayed.keepInstances=true From the Apache Felix documentation: Whether or not to keep instances of delayed components once they are not referred to any more. The Declarative Services specificat

Re: [osgi-dev] DS factory-type pattern

2018-07-04 Thread Fauth Dirk (AA-AS/EIS2-EU) via osgi-dev
Sorry, but now I am a bit confused. Are you talking about the consumer or the provider? @Reference is used to consume a service. If you want to create a service instance via ConfigurationAdmin, that would be the producer side. So some component needs to register your specific component instance

Re: [osgi-dev] DS factory-type pattern

2018-07-03 Thread Fauth Dirk (AA-AS/EIS2-EU) via osgi-dev
Hi, not sure about your use case in detail, but it sounds like you either could use the ConfigurationAdmin approach like I explained here: http://blog.vogella.com/2017/02/13/control-osgi-ds-component-instances/ Probably that is what you have already tried. But maybe the target reference proper

Re: [osgi-dev] OSGi Specification Question

2018-06-29 Thread Fauth Dirk (AA-AS/EIS2-EU) via osgi-dev
s correct, and either Tim misspoke or you misheard him. The service should look like a big arrow pointing from the consumer to the provider. Neil On Thu, Jun 28, 2018 at 2:57 PM, Fauth Dirk (AA-AS/EIS2-EU) via osgi-dev mailto:osgi-dev@mail.osgi.org>> wrote: Hi, maybe a stupid question,

[osgi-dev] OSGi Specification Question

2018-06-28 Thread Fauth Dirk (AA-AS/EIS2-EU) via osgi-dev
Hi, maybe a stupid question, but I am preparing my slides for the Java Forum Stuttgart about Remote Services, and remembered that Tim told me that my diagrams are incorrect, as the triangle is directing into the wrong direction. The big end should be on the producer side, while the cone end poi

Re: [osgi-dev] How to use LoggerFactory with DS?

2018-04-09 Thread Fauth Dirk (AA-AS/EIS2-EU) via osgi-dev
ce.component-logger.support (or section 112.3.12 in the PDF). This section shows the recommended approach to obtaining a Logger instance in a component. Regards, Neil On Mon, Apr 9, 2018 at 11:56 AM, Fauth Dirk (AA-AS/EIS2-EU) via osgi-dev mailto:osgi-dev@mail.osgi.org>> wrote: H

[osgi-dev] How to use LoggerFactory with DS?

2018-04-09 Thread Fauth Dirk (AA-AS/EIS2-EU) via osgi-dev
Hi, as with R7 the LogService is deprecated and instead the LoggerFactory should be used, I wanted to start integrating the LoggerFactory in the Eclipse Platform. But there is not much information about how the usage should be. >From what I understand so far, the idea is similar to SLF4J that a

Re: [osgi-dev] DS Reference injection order

2018-01-31 Thread Fauth Dirk (AA-AS/EIS2-EU) via osgi-dev
From my understanding the injection order should not be important in any way, or said in a better way, you should never rely on it. Your component gets satisfied once all required dependencies are resolved. So there is no component instance until all references can be resolved and injected, ther

Re: [osgi-dev] making an existing interface method default causes MINOR baseline change

2017-12-04 Thread Fauth Dirk (AA-AS/EIS2-EU) via osgi-dev
Hi, IMHO it is a MINOR change because it is not a breaking change. ☺ With that change neither implementations of the Foo interface, nor classes that extend the abstract Bar class will break. Implementations of the Foo interface can still implement the doFoo() method and by doing this override