Re: CommandProcessor session does not show output

2021-10-19 Thread Pierre De Rop
Hi Alexander, I don't know how it worked with previous gogo version, but when using a command processor, if I'm correct then I think you should test if the execute command has returned a result object and display it. I adapted your example which seems to work for me: *import* java.io.FileDescrip

Re: DependencyManager composition and additional dependencies with annotations

2021-06-24 Thread Pierre De Rop
Hello Alexander, When you use DependencyManager service composition, only the top level component dependencies (and lifecycle callbacks) are propagated to the composites, which must not be annotated. They only need to define the same method callback names than the ones specified in the top level M

Re: @Component and @AspectService not playing nice

2021-06-17 Thread Pierre De Rop
A%2F%2Faka.ms%2Fo0ukef&data=04%7C01%7CSteve.Runion%40myfuelmaster.com%7C6d55595d4a504b74faab08d93170d9f4%7Cdd4cdb5b3a504947bce6dd41ce3544d6%7C1%7C0%7C637595183055109113%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&sdata=tLgoMcg04W6f6jcTM5GxoOw3uoWPB5ub%2Fm1e

Re: @Component and @AspectService not playing nice

2021-06-16 Thread Pierre De Rop
Hello Steve, These annotations are part of the Felix DependencyManager (DM) annotaitons. So, the two annotations can't be mixed. @AspectService are specialized DependencyManager components (like @AdapterService, or @BundleAdapterService), and can be used to dynamically define an interceptor (or

[ANN] Felix Dependency Manager r16 Released

2021-01-25 Thread Pierre De Rop
Dear Felix users; The Felix team is pleased to announce the release of Dependency Manager r16 version. Release Notes: ** Bug * [FELIX-6180] - Component initialization error message get's printed to sysout instead of logged to LogService Kind Regards -The Felix team

Re: Felix DM - Migrating from version 3 to 4

2020-07-20 Thread Pierre De Rop
Hello Martin, you can stop your component by removing it from the dependency manager object. Here is an example: public class Activator extends DependencyActivatorBase { @Override public void init(BundleContext ctx, DependencyManager dm) throws Exception { Component c = createCom

Re: Missing plugin.xml in org.apache.felix.dependencymanager.annotations 4.x.x

2019-03-09 Thread Pierre De Rop
Hello Abhijeet ; (responding with limited internet access, I will be available next monday) Since dm annotations 4.0.0 version, there is no more maven plugins, instead we use a bnd plugin. Now if you are using maven, you can uses the "_plugin" attribute in order to activate the dm bnd plugin when

[ANN] Felix Dependency Manager R15 Released

2018-12-24 Thread Pierre De Rop
Dear Felix users; The Felix team is pleased to announce the release of Dependency Manager R15 version. Release Notes: * [FELIX-5996] - Remove generic parameter in DM Component interface Enjoy! -The Felix team

[ANN] Felix Dependency Manager R14 Released

2018-12-02 Thread Pierre De Rop
Dear Felix users; The Felix team is pleased to announce the release of Dependency Manager R14 version. Release Notes: ** Bug * [FELIX-5990] - DM ServiceTracker memory leak ** Wish * [FELIX-5991] - DM annotation scanner debug messages are logged in warn ** Task * [FELIX-5992] - Do not

[ANN] Felix Dependency Manager R13 Released

2018-10-22 Thread Pierre De Rop
Dear Felix users; The Felix team is pleased to announce the release of Dependency Manager R13 version. You will find a quick summary of the changes here: http://felix.apache.org/documentation/subprojects/apache-felix-dependency-manager/guides/whatsnew-r13.html This release is available from http

Re: IPOJO Component is not exposing service properly

2018-07-18 Thread Pierre De Rop
Hello; maybe you could try by specifying a location "?" when creating the factory configuration, something like: Configuration config = this.configurationAdmin.createFactoryConfiguration("com.my.osgi.MyComponent", "?") regards Pierre On Wed, Jul 18, 2018 at 3:50 PM, imranrazakhan wrote:

Re: Dependency Manager - Service does not stop

2018-07-05 Thread Pierre De Rop
Hello Florian, I have tried to reproduce the problem, but it seems to work well; I have committed a sample code which reflects the usecase you are describing here [1]. Can you please clone it and give it a try (the sample code is built using bndtools 3.4.0). To build the sample: git clone https:

Re: DM Lambda "stop" not being called

2018-01-07 Thread Pierre De Rop
Hello Bree; Sorry for the late response, I was on vacation. So, your example is definitely correct, but unfortunately, you came across a bug which I just fixed using the FELIX-5768 jira issue. Sorry about this silly problem, I did not see this ba

Re: DM r11 Behavior change in Component.getServiceProperties() intentional?

2017-08-24 Thread Pierre De Rop
Hi Bram, The NPE from your sample code is caused by a regression made in r9 release. I have created a FELIX-5683 issue, and committed the corresponding fix, which avoids the NPE. But there is another issue, because if I'm correct, since the initial version of dm (2.0.1), the getServiceProperties(

[ANN] Felix Dependency Manager R11 Released

2017-07-03 Thread Pierre De Rop
Dear Felix users; The Felix team is pleased to announce the release of Dependency Manager R11 version. This release is available from http://felix.apache.org/downloads.cgi Release Notes: ** Bug * [FELIX-5630] - NullObject is created for a required dependency if the component is removed and

[ANN] Apache Felix Dependency Manager r9 Released

2017-02-14 Thread Pierre De Rop
The Felix team is pleased to announce the release of Apache Felix Dependency Manager r9. This release is available from: http://felix.apache.org/downloads.cgi Release notes: ** Bug * [FELIX-5236] - Single @Property annotation on a type doesn't work * [FELIX-5242] - Configuration upd

Re: Dependency Manager commands not working after upgrading Servicemix from 5.4.0 to 6.1.2

2017-01-11 Thread Pierre De Rop
| Apache Felix > Shell Ser > vice > karaf@root>dm > karaf@root>dm wtf > Error: > Argument wtf is not a valid number. > > thanks again > > regards > > Rod > > > On 10 January 2017 at 12:00, Pierre De Rop wrote: > >> Hello

Re: Dependency Manager commands not working after upgrading Servicemix from 5.4.0 to 6.1.2

2017-01-10 Thread Pierre De Rop
Hello Rob, I'm have little knowledge about Karaf, but I would like to reproduce your issue. Do you have somewhere a feature containing the dm declaration that I could try to install ? (I have installed karaf 4.0.8). now I have some questions: - do you have some resolution errors in logs during s

Re: DependencyManager Parallelism and injection callbacks

2016-12-30 Thread Pierre De Rop
finally X should be stopped. cheers; /Pierre On Fri, Dec 30, 2016 at 4:03 PM, Pierre De Rop wrote: > Hello Jeroen; > > I think you came across a bug, and I committed a testcase for it as well > as a patch in trunk (I'm sorry about that). > see FELIX-5471 > > So, let me

Re: DependencyManager Parallelism and injection callbacks

2016-12-30 Thread Pierre De Rop
Hello Jeroen; I think you came across a bug, and I committed a testcase for it as well as a patch in trunk (I'm sorry about that). see FELIX-5471 So, let me clarify what is assumed to happen when you are using DM with a threadpool: So, when using a threadpool, all DM components are getting activ

Re: Using service interceptors to inject proxies

2016-10-06 Thread Pierre De Rop
the MyAnnotatedInterface interface. > > > > From the answers i have seen here, it looks like that usage is not > > possible, as any calls to getServiceReference requires something already > be > > registered on that interface. Correct? > > > > In that case, it w

Re: Using service interceptors to inject proxies

2016-10-06 Thread Pierre De Rop
Hello Martin, If you are interested, I can describe here DM aspects, which is a feature that might be interesting in your case. DM aspects are kind of (non functional) interceptors at the OSGi service level. DM aspects are real components, they can have a lifecycle, can be started/stopped at anyti

Re: Help debug ServiceDependency in DM4-R8

2016-09-27 Thread Pierre De Rop
Thanks Mdu, I will look into it. cheers; /pierre On Mon, Sep 26, 2016 at 10:14 PM, mduduzik wrote: > Pierre, > I created FELIX-5365 > issue. > > > > -- > View this message in context: http://apache-felix.18485.x6. > nabble.com/Help-debug-Servi

Re: Help debug ServiceDependency in DM4-R8

2016-09-12 Thread Pierre De Rop
Hi Mdu, Can you please open a change request issue in Jira for the "Dependency Manager Shell" component ? We'll then investigate if an improvement could be done. Also, can you please describe in jira the issue you had in order to avoid going to the wrong direction ? my understanding about the i

Re: Help debug ServiceDependency in DM4-R8

2016-09-09 Thread Pierre De Rop
By the way, the doc for the dm shell can be found here: http://felix.apache.org/documentation/subprojects/apache-felix-dependency-manager/tutorials/leveraging-the-shell.html cheers /Pierre On Sat, Sep 10, 2016 at 12:10 AM, Pierre De Rop wrote: > Hi Mdu, > > indeed, it might be poss

Re: Help debug ServiceDependency in DM4-R8

2016-09-09 Thread Pierre De Rop
Hi Mdu, indeed, it might be possible that the service consumer bundle is importing the package of the service it consumes from a bundle b1, while the service provider bundle is importing the package of the service from another bundle b2. in this case, the consumer won't see the service. can you p

Re: DM4 service factory/multiple service instance support

2016-08-26 Thread Pierre De Rop
Hi Mdu, You're welcome; I have created the jira issue in [1] in order to start investigating if DM4 API could be easily improved in order to support OSGi scope services. I will start working on this soon. [1] https://issues.apache.org/jira/browse/FELIX-5336 cheers; /Pierre On Thu, Aug 25, 2016

Re: DM4 service factory/multiple service instance support

2016-08-25 Thread Pierre De Rop
Hi Mdu if all consumers are in separated bundles, then you can simply arrange your service provider to implement the org.osgi.framework.ServiceFactory interface. Hence, all consumers will be injected with a private copy of the service provider service. if, now you have multiple consumer component

Re: DM: Callback "onRemove" callback not found on componnent instances []

2016-06-01 Thread Pierre De Rop
re-used so cleaning > would not be needed here? > > I've created FELIX-5274 for this. > > Regards, > Bram > > On Wed, Jun 1, 2016 at 9:57 PM Pierre De Rop > wrote: > > > I now see the warnings while running the org.amdatu.web.rest.itest > project > &g

Re: DM: Callback "onRemove" callback not found on componnent instances []

2016-06-01 Thread Pierre De Rop
ot;onRemove" callback not > found on component instances [] > destroy > [main] ERROR org.amdatu.web.rest.wink - [main] "onRemove" callback not > found on component instances [] > > > > On Wed, Jun 1, 2016 at 5:43 PM Pierre De Rop > wrote: > > > Hello Br

Re: DM: Callback "onRemove" callback not found on componnent instances []

2016-06-01 Thread Pierre De Rop
Hello Bram, The "callback not found on component instances ..." log is normally displayed when a callback is not found from some given callback instance(s). However, I just saw that when a callback instance was used (it is the case when an adapter is used), then the log was wrong: it did not log

[ANN] SCR Tooling Bnd Plugin 1.5.0

2016-05-30 Thread Pierre De Rop
The Felix team is pleased to announce the release of SCR Tooling Bnd Plugin 1.5.0 This release is available from http://felix.apache.org/site/downloads.cgi Release Notes: Changes from 1.4.0 to 1.5.0 --- ** Improvement * [FELIX-5108] - scr bnd plugin: Add option to s

Re: DependencyManager: Removing component before bundle is started doesn't work

2016-05-28 Thread Pierre De Rop
gt; I've tested with trunk that seems to work for me :) You are quick, fixing > the issue took you less time than it took me figuring out what was > happening .. > > Thanks! > > Bram > > On Thu, May 26, 2016 at 3:45 PM Pierre De Rop > wrote: > > > Bram,

Re: DependencyManager: Removing component before bundle is started doesn't work

2016-05-26 Thread Pierre De Rop
e > services everything works ok. > > Regards, > Bram > > 1: createBundleDependency().setBundle(context > .getBundle()).setStateMask(Bundle.ACTIVE).setRequired(true) > > On Thu, May 26, 2016 at 9:05 AM Pierre De Rop > wrote: > > > ok Bram; I will try to rep

Re: DependencyManager: Removing component before bundle is started doesn't work

2016-05-26 Thread Pierre De Rop
removed the component will add / remove additional > components. This all works but if a component is removed before the > BundleActivator#start method has completed the service will stick around in > the service registry. > > Regards, > Bram > > On Thu, May 26, 2016 at 8:51 A

Re: DependencyManager: Removing component before bundle is started doesn't work

2016-05-25 Thread Pierre De Rop
e Activator to demonstrate the issue). Once > the test you've created runs the bundle is already started and all works as > expected. > > Regards, > Bram > > On Thu, May 26, 2016 at 8:15 AM Pierre De Rop > wrote: > > > Hi Bram, > > > > The service

Re: DependencyManager: Removing component before bundle is started doesn't work

2016-05-25 Thread Pierre De Rop
Hi Bram, The service should be removed from the service registry when you remove the Component from DependencyManager. Now, I tried to reproduce the issue you are describing in [1], but I could not (the test is OK). Can you please take a look at it in order to see if it the same kind of scenario

Re: Re: SCR: Sometimes component gets instantiated twice

2016-03-09 Thread Pierre De Rop
just out of curiosity; can you try adding an @Modified annotation somewhere in your component, and tell if you also observe a component restart ? /pierre On Wed, Mar 9, 2016 at 2:01 PM, Jens Offenbach wrote: > Yes, it is called between the two activates. > > This is the stack trace: >

Re: [ANN] Apache Felix Dependency Manager r8 Released

2016-03-07 Thread Pierre De Rop
Thanks Renato; It's difficult to make a comparison with Blueprint and IPojo, which I don't know well; I only practice DM and DS regularly. Let me try to give a quick overview, with some elements which could help you to make your own opinion and compare with the other DI frameworks: - DM takes its

[ANN] Apache Felix Dependency Manager r8 Released

2016-03-06 Thread Pierre De Rop
The Felix team is pleased to announce the release of the Felix Dependency Manager version r8. This release is available from: http://felix.apache.org/downloads.cgi This new release requires the usage of a recent JAVA8 runtime (at least version 1.8

Re: Downloads page on website contains old content

2016-01-28 Thread Pierre De Rop
.list file was committed? > > > On 27 January 2016 at 12:02, Bram Pouwelse wrote: > > > Thanks Pierre, I don't know the expected versions for all projects but it > > looks a lot better now > > > > On Wed, Jan 27, 2016 at 11:09 AM Pierre De Rop > &g

Re: Downloads page on website contains old content

2016-01-27 Thread Pierre De Rop
I think I just fixed it. cheers; /Pierre On Wed, Jan 27, 2016 at 10:09 AM, Pierre De Rop wrote: > Hi Bram; > > Thanks for pointing out this ! Arjun Panday also just contacted me about > that. Even dependency manager went back to old 3.2 > > It seems that the regression come

Re: Downloads page on website contains old content

2016-01-27 Thread Pierre De Rop
Hi Bram; Thanks for pointing out this ! Arjun Panday also just contacted me about that. Even dependency manager went back to old 3.2 It seems that the regression comes from this commit: http://svn.apache.org/viewvc/felix/site/trunk/content/downloads.list?r1=1723970&r2=1725455 Guillaume, can you

Upcoming Dependency Manager Lambda (R7)

2016-01-15 Thread Pierre De Rop
Dear Felix users; Just to tell that I'm about to release a new Dependency Manager R7 version. This version will be special because it will include a new Dependency Manager Lambda API, based on java 8 and on top of the existing DM API. So starting from the R7 version, DM will now require the usage

[ANN] Apache Felix Dependency Manager Release R6

2015-12-01 Thread Pierre De Rop
The Felix team is pleased to announce the release of the Apache Felix Dependency Manager release R6. This release is available from: http://felix.apache.org/site/downloads.cgi The instructions to build the Dependency Manager from the source distribution can be found here: http://felix.apac

Re: Dependency Manager does not behave as expected

2015-09-17 Thread Pierre De Rop
dding the service dependency. > In my opinion DM should not try to start the service before I finally add > the component > to DM, but now it tries to start the service, as soon as add a > ServiceDependency. > > Tested with DM 4.1.0 > > Thank you again > Hubert > &g

Re: How To Build Apache Felix Dependency Manager

2015-09-17 Thread Pierre De Rop
latest release is DM 4.1.1 > But this is not available in > > http://mvnrepository.com/artifact/org.apache.felix/org.apache.felix.dependencymanager > > > The latest release there is 4.1.0 > > > If 4.1.1 is released, could somebody please make 4.1.1 available on > mavenr

Re: How To Build Apache Felix Dependency Manager

2015-09-17 Thread Pierre De Rop
.1 > But this is not available in > > http://mvnrepository.com/artifact/org.apache.felix/org.apache.felix.dependencymanager > > > The latest release there is 4.1.0 > > > If 4.1.1 is released, could somebody please make 4.1.1 available on > mavenrepository? > > Hubert

Re: Dependency Manager does not behave as expected

2015-09-16 Thread Pierre De Rop
Hi Hubert; I don't understand how this is possible, because a DM component initial state is Inactive, and remains in this state until you add it to a DependencyManager object. So, your service implementation can not be called in start() before you add the component to the dm object. Ok, in order

Re: How To Build Apache Felix Dependency Manager

2015-09-16 Thread Pierre De Rop
error: package aQute.bnd.osgi does not exist > import aQute.bnd.osgi.Clazz; > ^ > > E:\dependencymanager\org.apache.felix.dependencymanager.annotation\src\org\apache\felix\dm\annotation\plugin\bnd\AnnotationCollector.java:55: > error: package aQute.bnd.osgi.Descriptors does not exist >

Re: How To Build Apache Felix Dependency Manager

2015-09-16 Thread Pierre De Rop
Hello Hubert, This is an old documentation. We are now using BndTools and Gradle and the latest documentation is located at [1]. More specifically, how to build DM is described at [2] Don't hesitate to ping here if you need more helps. cheers; /Pierre [1] http://felix.apache.org/documentation/s

Re: Cannot build project from source

2015-07-27 Thread Pierre De Rop
Hello Ken, oops, yes, Marcel is right: I forgot to remove the dependencymanager from the toplevel pom.xml (DM is now built using bndtools instead of maven). I just committed in rv 1692952 the toplevel pom.xml. I also added the resolver module in the toplevel pom.xml (the framework is now depende

[ANN] Apache Felix Dependency Manager 4 (top-level release R5) Released

2015-06-09 Thread Pierre De Rop
The Felix team is pleased to announce the release of the Apache Felix Dependency Manager 4 top-level release R5. This release is available from: http://felix.apache.org/site/downloads.cgi The instructions to build the Dependency Manager from the source distribution can be found here: http:

[ANN] Apache Felix Dependency Manager 4 (top-level release R3) Released

2015-05-26 Thread Pierre De Rop
The Felix team is pleased to announce the release of the Apache Felix Dependency Manager 4 top-level release R3. This release is available from: http://felix.apache.org/site/downloads.cgi The instructions to build the Dependency Manager from the source distribution can be found here: http:

Re: Servlet whiteboard registration vs. direct registration - Filter not working

2015-05-23 Thread Pierre De Rop
Hello Thomas, Just a remark, when you define a DM @Component annotation on a class which implements an interface, then the interface is automatically registered in the OSGi service registry. So, in the case of your MyManualServlet, since you are registering it manually from the @Start method, then

Re: DependencyManager and bundle-private components

2015-05-21 Thread Pierre De Rop
Hello Simon, DM, like DS does not implement a private service registry to intra-bundle components (well, except for optimized DM filter indices, but this is another story). I think Ipojo do support what you are describing, but I prefer to let other people respond about this since I'm not enough e

Re: ServletContextListener

2015-05-12 Thread Pierre De Rop
|Apache Felix Log Service (1.0.1) 14|Active |1|Apache Felix Metatype Service (1.0.12) /Pierre On Tue, May 12, 2015 at 5:30 PM, Pierre De Rop wrote: > Thomas, > > I suggest to not include the api bundles in the runtime (osgi.enterprise, > and osgi.residential), which sh

Re: ServletContextListener

2015-05-12 Thread Pierre De Rop
ntioned property "osgi.http.whiteboard.listener" is never > mentioned in RFC-189 -> should it be mentioned? > 2) Two dependency chains of http.jetty.3.0.3.SNAPSHOT leads to two jetty > bundles being automatically resolved by bndtools. > > The 1st chain is: jetty.3.0.3 -> o

Re: ServletContextListener

2015-05-12 Thread Pierre De Rop
Hello Thomas, if you are using DM annotations, you can try to add the service property mentioned by Raymond using the following: @Component(properties = @Property(name = "osgi.http.whiteboard.listener", value = "true")) public class MyContextListener implements ServletContextListener { ... } And

Re: SCR Annotations BndTools: Service-Component entry can not be located in JAR

2015-03-26 Thread Pierre De Rop
cool ! :-) On Thu, Mar 26, 2015 at 4:17 PM, Bernd Prager wrote: > I confirm, it's working. > Thank you! > > > On 26.03.2015 08:26, Pierre De Rop wrote: > >> I just created a jira issue (FELIX-4836) and committed a candidate fix in >> revision 1669348. >&g

Re: SCR Annotations BndTools: Service-Component entry can not be located in JAR

2015-03-26 Thread Pierre De Rop
On Thu, Mar 26, 2015 at 12:46 PM, Bernd Prager wrote: > Thank you very much Pierre for the quick response. Good job. > > Sent from my iPhone > > > On Mar 26, 2015, at 7:30 AM, Pierre De Rop > wrote: > > > > Ok, Bernd; > > > > I understand what is goin

Re: SCR Annotations BndTools: Service-Component entry can not be located in JAR

2015-03-26 Thread Pierre De Rop
18 AM, Pierre De Rop wrote: > Hello Bernd, > > Sorry for this, indeed I just reproduced the issue with bndtools 2.4.1 > (but as far as I remember, the tutorial worked fine with previous bndtools > versions, or may be there is a regression somewhere). > > I will investigate thi

Re: SCR Annotations BndTools: Service-Component entry can not be located in JAR

2015-03-26 Thread Pierre De Rop
Hello Bernd, Sorry for this, indeed I just reproduced the issue with bndtools 2.4.1 (but as far as I remember, the tutorial worked fine with previous bndtools versions, or may be there is a regression somewhere). I will investigate this and will get back to you asap. PS: if you are using Apache

[ANN] Apache Felix Dependency Manager 4 (top-level release R2) Released

2015-03-25 Thread Pierre De Rop
The Felix team is pleased to announce the release of the Apache Felix Dependency Manager 4 top-level release R2. This R2 release provides an important fix for the previous R1 release which had a bug regarding Iterable autoconfig fields. This release is available from: http://felix.apache.org

[ANN] Apache Felix Dependency Manager 4 (top-level release R1) Released

2015-03-12 Thread Pierre De Rop
The Felix team is pleased to announce the release of the new Apache Felix Dependency Manager 4.0 packaged in the top-level release R1. This top level release provides a new Dependency Manager 4 major version with a new concurrency model and with many new features. The source distribution is now bu

Re: DependencyManager: notify third party object of changed adaptee properties

2014-10-15 Thread Pierre De Rop
Hello Philipp, I think that currently, it is not possible to specify a third party callback object to be notified when the adaptee services properties are changed, and only your adapter will be notified. One possible alternative could consist in letting the adapter impl provide an adapted interfa

Re: DependencyManager: start order relevant for adapters?

2014-10-01 Thread Pierre De Rop
") .setRequired(true), dm.createServiceDependency() .setInstanceBound(true) .setService(OtherService2.class, "(name=yyy)") .setRequired(true)) ); } } kind regards; /pierre Regards Philip

Re: DependencyManager: start order relevant for adapters?

2014-09-30 Thread Pierre De Rop
Hello Philipp, I don't know if this may help, but if you are using DM 3.2.0, please don't forget that if you are declaring some extra-service dependencies from your init() methods (in your adapter for example), then you have to declare them as "instance bound" dependencies: you have to make a call

Re: Dependency Manager: publish adapter with properties of the adapted service

2014-09-25 Thread Pierre De Rop
tion(DeviceConsumerImpl.class) > .setInterface(EventHandler.class.getName(), props); > > Philipp > > > On 25.09.2014 10:53, Pierre De Rop wrote: > >> Hi Philipp; >> >> On Thu, Sep 25, 2014 at 8:54 AM, Bulu wrote: >> >> Hello all >>> &

Re: Dependency Manager: publish adapter with properties of the adapted service

2014-09-25 Thread Pierre De Rop
face) a new service while the object is being initialized). > > So how should it be done? > > I came up with a workaround, which is to publish the service at first with > incomplete properties, and just update them in the init method when the > values are present. But tha

Re: Dependency Manager: how to update service properties

2014-09-24 Thread Pierre De Rop
Hi Philipp; see my response, inlined below: On Wed, Sep 24, 2014 at 4:46 PM, Bulu wrote: > Hello all > > If the published property of a service is based on a value in the actual > service object, and that value later changes, how can I update the > properties using DM? > > Example: You have De

Re: Dependency Manager: depend on several linked services

2014-09-23 Thread Pierre De Rop
er creates a new component *for each* tracked service which > appears. (n to n relation) > > Note: I'm on DM 3.2 for now, so Component.getService() is what I was > looking for. > > Thanks & regards Philipp > > > On 23.09.2014 08:41, Pierre De Rop wrote: > >

Re: Dependency Manager: depend on several linked services

2014-09-22 Thread Pierre De Rop
ot;init", "start", "stop", > "destroy")); > > the myManager instance gets the Component object passed in the lifecycle > methods > ( start(Component c) ). Can I get the actual object (here the Consumer > instance) from this Component? > > Re

Re: Dependency Manager: depend on several linked services

2014-09-22 Thread Pierre De Rop
Hello Philipp, So, let's see if I understand you correctly: - you have N "Device" services (each having a "device.id" service propery). - then you have N corresponding DeviceParameter instances, each one also having a "device.id" service property, matching a corresponding Device. - and you want t

[ANN] DependencyManager 3.2.0 and related subprojects released

2014-07-22 Thread Pierre De Rop
The Apache Felix team is pleased to announce the release of Felix Dependency Manager 3.2.0, Dependency Manager Shell 3.2.0, Dependency Manager Annotation 3.2.0, and Dependency Manager Runtime 3.2.0 This is a maintenance release with several bug fixes and with some improvements made in the dependen

Re: Building better OSGi applications

2014-07-17 Thread Pierre De Rop
In addition to the responde made by Paul, I confirm that the new major DM 4.0.0 version will come soon (see [1]). Also there is another benchmark that has been made for DM4. It is probably not a prefect benchmark, but it's simple and it allows to test basic features, like service dependencies. If

Re: Building better OSGi applications

2014-07-17 Thread Pierre De Rop
Philipp; errata: the correct link for the DM documentation is http://felix.apache.org/documentation/subprojects/apache-felix-dependency-manager.html kind regards; /Pierre On Thu, Jul 17, 2014 at 11:27 AM, Pierre De Rop wrote: > Hi Philipp; > > I'm using DM and DS in some larg

Re: Building better OSGi applications

2014-07-17 Thread Pierre De Rop
Hi Philipp; I'm using DM and DS in some large applications (~400 bundles, ~1000 services), and I confirm that both DM and DS are fast. If you want to give a try to DM java API, you can take a look at [1]. it's a simple but powerful API, which allows to not only declare simple services, but also s

Re: Dependency Manager Shell - IllegalStateException: Invalid BundleContext after update of some bundles

2014-06-30 Thread Pierre De Rop
hell. woohoo! > Any ETA on a release? > > thanks! > Andras > > > On 27 June 2014 08:42, Pierre De Rop wrote: > > > Hello Andras; > > > > just to say I saw your post. I'm just lacking of time this week, but I > will > > look into your problem

Re: Dependency Manager Shell - IllegalStateException: Invalid BundleContext after update of some bundles

2014-06-26 Thread Pierre De Rop
Hello Andras; just to say I saw your post. I'm just lacking of time this week, but I will look into your problem this WE; in the mean time, it would be helpful if you could confirm that you also have the problem with the dm and shell trunk versions ? thanks; kind regards; /Pierre On Wed, Jun

Re: IPojo performance benchmark

2014-06-25 Thread Pierre De Rop
> > 2. you can uses a variable substitution in the filter of the dependency > The value will be substituted automatically. > You can use any property name of your component , they will be recognized. > > —G > > Le 25 juin 2014 à 16:12:05, Pierre De Rop (pierre.de...@gmail.com

Re: IPojo performance benchmark

2014-06-25 Thread Pierre De Rop
1 for track. > Then, you'll have to create instances by providing a configuration with > instance specific values (like identifier, ...): > > http://felix.apache.org/ipojo/api/1.11.0/org/apache/felix/ipojo/api/ComponentType.html#createInstance(java.util.Dictionary) > > Thanks &

Re: IPojo performance benchmark

2014-06-25 Thread Pierre De Rop
juin 2014 at 00:14:26, Pierre De Rop (pierre.de...@gmail.com) wrote: > > Hello Clement, > > I'm also working on some benchmark related to dependency manager, > declarative service, and after reading this post, I tried to incorporate a > scenario using iPojo in my benchm

Re: IPojo performance benchmark

2014-06-21 Thread Pierre De Rop
Hello Clement, I'm also working on some benchmark related to dependency manager, declarative service, and after reading this post, I tried to incorporate a scenario using iPojo in my benchmark. And it seems that I'm also observing a performance problem. I will try to commit somewhere my benchmark

Re: Declarative Services

2013-11-01 Thread Pierre De Rop
Hi David, I'm not sure whether I fully understand or not, can you please clarify and describe with more details the circular dependency involved in this problem ? As far as I understand what you are describing: - C is immediate, enabled, and has two required references on both A, B. - A is enabl

Re: Articles about the Apache Felix Dependency Manager

2013-10-30 Thread Pierre De Rop
Hi Marcel, Nice articles, I will look into them with pleasure. As Bram suggested, I also added the links in Felix documentation: http://felix.apache.org/documentation/subprojects/apache-felix-dependency-manager/apache-felix-dependency-manager-resources.html best regards; /Pierre On Tue, Oct

Re: SCR Bug?

2013-09-18 Thread Pierre De Rop
Hi Dave, Could you give a try to the trunk version of the SCR (I think that the code changed a lot in the trunk since 1.6.2). regards; /Pierre On Wed, Sep 18, 2013 at 10:09 PM, Dave Smith wrote: > 1.6.2 > > Dave Smith > Candata Ltd. > 416-493-9020x2413 > Direct: 416-855-2413 > > > On Wed, Sep

Re: configadmin: no visibility to configuration

2013-09-10 Thread Pierre De Rop
Hi Jean-Philippe, in addition to the responses made by Felix and Roland, you can also refer to configuration admin specification, especially in the chapter 104.4.1 of the 4.3 OSGi compendium, which explains what is a configuration location binding (the second parameter of the getConfiguration(Stri

Re: Compendium Services managed properties and multiple bundles

2013-08-23 Thread Pierre De Rop
Hi Tim, I don't know if gemini BP is compatible with CM from OSGi compendium 4.3, but using a 4.3 CM allows to share the same configuration PID across multiple bundles if the configuration is created using a specific "?" location binding (see 104.4.1 chapter, in compendium 4.3). Technically, crea

Re: handle org.apache.servicemix.bundles.freemarker package conflict in Felix?

2013-05-27 Thread Pierre De Rop
Hi Christiano, I think that Felix was talking about adding the following property in your framework conf/config.properties: org.osgi.framework.system.packages.extra=org.w3c.dom.traversal; version="..." You can refer to http://felix.apache.org/documentation/subprojects/apache-felix-framework/apa

Re: Question about scr release schedule

2013-05-23 Thread Pierre De Rop
Hello Adam; I don't know when David or Felix plans to cut a release, but looking at your trace, it seems that your maven crashed ? Maybe you ran out of memory ? Can you retry with more memory, using MAVEN_OPTS="-Xmx512m -Xms512m -server" ? if some tests are still failing, can you then provide th

Re: DependencyManager - osgi.cmpn-4.3.1

2012-11-12 Thread Pierre De Rop
Hi Bokie, I reproduced the problem with config-admin 1.6.0. Are you also using it ? Anyway, Felix found the root cause: it's because of a duplicate export of the CM api (org.osgi.service.cm package): 1) config-admin 1.6.0 exports org.osgi.service.cm with version=1.5 (because it implements the la

Re: DependencyManager - osgi.cmpn-4.3.1

2012-11-11 Thread Pierre De Rop
Hi Bokie, I did a quick test with a simple DM activator, using a ConfigurationDependnecy, and also using osgi.cmpn-4.3.1.jar, but I could not reproduce the problem. Can you please give us the list of the bundles you are using ? >From my side, I used the following bundles (with osgi.cmpn-4.3.1.ja

Re: Felix SCR for Declarative Services 1.2

2012-10-06 Thread Pierre De Rop
Hi Caspar, The SCR from the Felix trunk is compiled with compendium 4.3. Can you recompile scr from trunk and do a test with it ? I think it should work. regards; /Pierre On Thu, Oct 4, 2012 at 7:40 PM, Caspar MacRae wrote: > Hello, > > Is there a version of Felix SCR that works with OSGi 4.3.

Re: Felix DependencyManager with annotation/eclipse

2012-02-04 Thread Pierre De Rop
regards; /Pierre On Mon, Jan 23, 2012 at 9:58 AM, Pierre De Rop wrote: > Hi Mohica, > > Currently, the dependencymanager annotation plugin is only able to > generate the descriptor files (META-INF/dependencymanager/*) in the target > bundle, not in the maven project directory

Re: multiple configuration dependency

2012-02-04 Thread Pierre De Rop
) { System.out.println("Service2 updated with Service1 properties: " + config); } } kind regards; /Pierre On Tue, Jan 31, 2012 at 10:33 AM, Pierre De Rop wrote: > Hi Mohica, > > This sounds like a bug, I will investigate asap. > > regards > /pierre > > > On Mon

Re: configurationAdmin & update handler

2012-02-04 Thread Pierre De Rop
Hi Mohica, I think I have reproduced the issue you describe, and after having checked, the root cause of the problem is probably the following: By default, fileinstall listens to configuration updates, using the ConfigAdmin interface "org.osgi.service.cm.ConfigurationListener" interface. So, whe

Re: multiple configuration dependency

2012-01-31 Thread Pierre De Rop
Hi Mohica, This sounds like a bug, I will investigate asap. regards /pierre On Mon, Jan 30, 2012 at 9:56 PM, Mohica Jasha wrote: > On Mon, Jan 30, 2012 at 8:11 AM, Pierre De Rop >wrote: > > > // Use a ServiceDependency instead of a ConfigurationDependency on &g

Re: multiple configuration dependency

2012-01-30 Thread Pierre De Rop
Hi Mohica, Assuming that service2 needs configuration from service1.pid and service2.pid, then there are two cases: 1) case 1: if both services (service1/service2) are packaged in the same bundle, then yes, service2 may define two configuration dependencies on both pids, for instance like this:

Re: Felix DependencyManager with annotation/eclipse

2012-01-23 Thread Pierre De Rop
o work. > > My Question: > What modification should I make to my pom files to put dependencymanager > not only in the jar file but also in the project folder hierarchy, i.e., > com.myannotation.project/com.myannotation.testbundle/META-INF/ ? > > Thanks, > Mohica > >

  1   2   >