Re: Help debug ServiceDependency in DM4-R8

2016-09-09 Thread mduduzik
Pierre, Like Ray, you are spot on. See my response post shortly before your recommendation. I think "dm wtf" can be improved to make my silly mistake obvious - or provide better hints. Thanks. -Mdu -- View this message in context:

Re: Help debug ServiceDependency in DM4-R8

2016-09-09 Thread mduduzik
Ray, That was the root cause. The publishing bundle was using an internal (private) package and consuming bundle using one from cmpn. I'm sure this saved me a few hours - at the least. It'd be great if shell(gogo) command like 'dm wtf' can tell you component from bundle X is waiting for a service

Help debug ServiceDependency in DM4-R8

2016-09-09 Thread mduduzik
I have a DM component that depends on a service that looks like is available (checking with WebConsole). However, the consuming DM component stays in WAITING_FOR_REQUIRED state. How do I debug why an available service is not being consumed. Note: required service is registered after the

Re: Help debug ServiceDependency in DM4-R8

2016-09-26 Thread mduduzik
Pierre, I created FELIX-5365 issue. -- View this message in context: http://apache-felix.18485.x6.nabble.com/Help-debug-ServiceDependency-in-DM4-R8-tp5018369p5018604.html Sent from the Apache Felix - Users mailing list archive at

Re: Help debug ServiceDependency in DM4-R8

2016-09-19 Thread mduduzik
Hi Pierre, Sorry it took long to follow up. I'll create a feature request as advised. Regards. -Mdu -- View this message in context: http://apache-felix.18485.x6.nabble.com/Help-debug-ServiceDependency-in-DM4-R8-tp5018369p5018502.html Sent from the Apache Felix - Users mailing list archive at

Re: DM4 service factory/multiple service instance support

2016-08-25 Thread mduduzik
Really cool. I missed following the link to the new project DM sub-project you just created. I'll follow that closely. -Mdu -- View this message in context: http://apache-felix.18485.x6.nabble.com/DM4-service-factory-multiple-service-instance-support-tp5018226p5018254.html Sent from the Apache

Re: DM4 service factory/multiple service instance support

2016-08-25 Thread mduduzik
Pierre, This is a perfect answer I was hoping for. I learned something new especially re: ctx.getServiceObjects(ref). We will plan to hide all this complexity with helper util class that simply provides a ***Helper.getService(type,filter,scope_enum) (and default'ed variants of course). It'd be

DM4 service factory/multiple service instance support

2016-08-24 Thread mduduzik
I would like to create and new instance of component for every service request. I believe by default a component is a singleton - i.e. the same instance will be returned for every service consumer request. In DS/SCR, this is accomplished by using a factory property in @Component declaration.

Re: DM4 service factory/multiple service instance support

2016-08-24 Thread mduduzik
Ray/David, Thanks for your prompt responses. I would like to accomplish this using API/Activator approach in DM4 (Felix Dependency Manager 4). Here's the context within which I would like to do this: public class Activator extends DependencyActivatorBase { @Override public void