Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Equinox » [DS] Change service properties
[DS] Change service properties [message #133620] Thu, 25 June 2009 17:13 Go to next message
Jaime is currently offline JaimeFriend
Messages: 56
Registered: July 2009
Member
We are using declarative services to register our OSGi components/services.
However, if I want to update (in runtime) any OSGi service, the
ServiceRegistration is not available (because DS registered the service).
We have used ConfigAdmin but:
- If we get the configuration (configAdmin.getConfiguration) with the DS
component name, the properties are successfully updated but the component is
deactivated and activated. This behaviour is not acceptable in our project.
- If we get the configuration with the "service.pid" property, then there's
no deactivation/activation but the service properties are not updated (only
the configuration provided by the ConfigAdmin offers the updated
properties). So, if we execute the command "services", the service
properties are always the same.
Is there any way to fix this problem? Is there any mechanism to update the
service properties when using DS?
Thank you in advance,
Jaime
Re: [DS] Change service properties [message #487733 is a reply to message #133620] Thu, 24 September 2009 09:19 Go to previous message
Stoyan Boshev is currently offline Stoyan BoshevFriend
Messages: 3
Registered: July 2009
Junior Member
I guess you may take advantage of the modified method, which is called
when the component configuration changes. See OSGi R4.2 spec "112.5.12
Modified Method" for details.
Previous Topic:Customizing p2 installer
Next Topic:where to find the org.eclipse.equinox.log plugin?
Goto Forum:
  


Current Time: Fri Apr 19 23:05:38 GMT 2024

Powered by FUDForum. Page generated in 0.03002 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top