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

2016-06-01 Thread Bram Pouwelse
Hi Pierre, Thanks! removing the destroy callback resolves the issue. And nice to learn that you don't have to remove these dependencies manually anymore :) One more thought ... I think the onRemoved callback is also not really useful in this case as it's only cleaning up the WinkServlet instance

Re: Get a list of paths of registered servlets

2016-06-01 Thread Carsten Ziegeler
Marcel Offermans wrote > That only helps him if he uses the whiteboard API. If he directly talks to > HttpService it probably won’t work. > The Felix implementation also lists all servlets registered with the HttpService using the DTO api. Carsten -- Carsten Ziegeler Adobe Research

Re: Get a list of paths of registered servlets

2016-06-01 Thread David Daniel
Thank you all for your help. I will just try and register and keep track of what is registered with the whiteboard API. I had not known about it and appreciate all the help On Jun 1, 2016 5:45 PM, "Raymond Auge" wrote: > On Wed, Jun 1, 2016 at 5:43 PM, Raymond Auge

Re: Get a list of paths of registered servlets

2016-06-01 Thread Raymond Auge
Also, the runtime API DOES include information about the legacy HttpService registrations, the service id numbering increments downward from -1 indicating they aren't real services. that's the only difference. - Ray On Wed, Jun 1, 2016 at 5:40 PM, Neil Bartlett wrote: >

Re: Get a list of paths of registered servlets

2016-06-01 Thread Raymond Auge
On Wed, Jun 1, 2016 at 5:43 PM, Raymond Auge wrote: > increments downward from -1 > decrementing from -1

Re: Get a list of paths of registered servlets

2016-06-01 Thread Neil Bartlett
Well, you CAN atomically find out whether the name you want to register is already registered: just try to do it, and catch the NamespaceException. Neil > On 1 Jun 2016, at 22:37, Marcel Offermans wrote: > > That only helps him if he uses the whiteboard API. If

Re: Get a list of paths of registered servlets

2016-06-01 Thread Marcel Offermans
That only helps him if he uses the whiteboard API. If he directly talks to HttpService it probably won’t work. Another problem is that you probably can’t do this as an atomic operation so after you’ve checked, someone else can still beat you to it. That said I don’t have a great solution to

Re: Get a list of paths of registered servlets

2016-06-01 Thread Raymond Auge
The Http Whiteboard API contains a runtime introspection API which returns DTOs of what's registered. look for a service registered under interface: org.osgi.service.http.runtime.HttpServiceRuntime - Ray On Wed, Jun 1, 2016 at 4:24 PM, David Daniel wrote: > Is

[maven-bundle-plugin] v.3.0.x regression for DS xml generation ?

2016-06-01 Thread Cristiano Gavião
Hi, I used to use m-b-p version 2.5.4 and the generation of the DS component xmls was working fine. But after I moved to version 3.0.1 (also tried with 3.0.0) the xml generation simply stops to work. also inside eclipse (with m2e). There are any error message in the building maven console

Get a list of paths of registered servlets

2016-06-01 Thread David Daniel
Is it possible to find out what servlets have been registered with the httpservice. I am dynamically registering servlets and want to verify that a servlet has not already been registered with the same path. Is there a way to query the httpservice for all servlet paths that are registered,

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

2016-06-01 Thread Pierre De Rop
I now see the warnings while running the org.amdatu.web.rest.itest project ! ok, Bram, I took a look at the WinkServlet, and I see that from the WinkServlet.dmInit() method, a dependency is dynamically added: protected void dmInit() { ServiceDependency dep =

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

2016-06-01 Thread Bram Pouwelse
Hi Pierre, Just built dm from trunk but I get the same log message :( You can checkout the branch (feature/AMDATUWEB-59) and run the itests from org.amdatu.web.rest.itest project. I've added some sysouts in the callback methods log (appended at the end of the message) ... so it's only the

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

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

2016-06-01 Thread Bram Pouwelse
Hi, I have some troubles with a dependency manager adapter service, for some reason it fails to call the remove callback (looking at the message there are no instances available to invoke the method on). Tried to reproduce the issue in less complex project but I don't have the problem there...

Re: Where can I find the default implementation of httpcontext

2016-06-01 Thread Carsten Ziegeler
Raymond Auge wrote > I believe in the latest felix http impl Carsten added a feature to be able > to target legacy contexts using DS via http whiteboard. > > However, you need to know the name of this legacy context > and I'm not sure how you do that in the felix impl. > Yes, you can reference