OK,

I created bug https://bugs.eclipse.org/bugs/show_bug.cgi?id=288253

Also, the suggestion to get a fresh Configuration object with 
ConfigurationAdmin.getConfiguration(pid, location) did not work any differently.

--
Best Regards,

Don Laidlaw | Sr. Research Engineer | Infor | office: +1 902-576-5185 | mobile: 
+1 902-401-6771 | [email protected]



________________________________
From: Thomas Watson <[email protected]>
Reply-To: Equinox development mailing list <[email protected]>
Date: Mon, 31 Aug 2009 16:24:06 -0400
To: Equinox development mailing list <[email protected]>
Subject: Re: [equinox-dev] ConfigurationAdmin - changing the location of a PID

Please open a bug against Equinox->Compendium at 
https://bugs.eclipse.org/bugs/enter_bug.cgi?product=Equinox about this.

Also can you try get/creating the configuration with the initial location of A 
(i.e. by calling ConfigurationAdmin.getConfiguration(String pid, String 
location)).  When you open the bug report please let us know if that method 
also fails for you.  Thanks.

Tom



[cid:3334647145_41872334]Don Laidlaw ---08/31/2009 01:53:34 PM---Hi,

[cid:3334647145_41836048]
From:[cid:3334647145_41857337]
Don Laidlaw <[email protected]>
[cid:3334647145_41834085]
To:[cid:3334647145_41831193]
Equinox development mailing list <[email protected]>
[cid:3334647145_41849783]
Date:[cid:3334647145_41881403]
08/31/2009 01:53 PM
[cid:3334647145_41832558]
Subject:[cid:3334647145_41854242]
[equinox-dev] ConfigurationAdmin - changing the location of a PID
________________________________



Hi,

I am using ConfigurationAdmin, and programmatically setting the location of a 
PID that I am creating. That all works OK, and the getLocation() method returns 
the correct location for the PID. I change the location of the pid to the 
location of a bundle that has a ManagedService with the service.pid set to the 
PID in question.

That is:
Bundle A, registers a ManagedService with service.pid=my.pid
Bundle B, creates PID my.pid and sets the Configuration location to the 
location of Bundle A.

The problem is that the ManagedService never has its updated(Dictionary) method 
called. Stepping through the code reveals that this is because the 
ConfigurationImpl class has in internal private variable named boundBundle 
which is still set to the bundle that created the PID, and the Configuration 
location is ignored in deciding whether to call 
ManagedService.updated(Configuration) methods.

Is this as designed? I hope not :) I would have expected that if I created the 
PID and set its location to that of another bundle, then the ManagedService 
class in the other bundle would immediately start to have its 
updated(Configuration) method called whenever the PID was changed.

Thanks!
--
Best Regards,

Don Laidlaw | Sr. Research Engineer | Infor | office: +1 902-576-5185 | mobile: 
+1 902-401-6771 | [email protected] <[email protected]>
_______________________________________________
equinox-dev mailing list
[email protected]
https://dev.eclipse.org/mailman/listinfo/equinox-dev



<<inline: image.gif>>

<<inline: image.gif>>

<<inline: image.gif>>

<<inline: image.gif>>

<<inline: image.gif>>

<<inline: image.gif>>

<<inline: image.gif>>

<<inline: image.gif>>

<<inline: image.gif>>

_______________________________________________
equinox-dev mailing list
[email protected]
https://dev.eclipse.org/mailman/listinfo/equinox-dev

Reply via email to