[
https://issues.apache.org/jira/browse/KARAF-1189?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13240342#comment-13240342
]
Achim Nierbeck edited comment on KARAF-1189 at 3/28/12 10:45 AM:
-----------------------------------------------------------------
@Andrej:
If you have a Service that depends on a external configuration your only option
is to go for managed Service Factories.
There is some documentation for this in the Spring-DM documentation at:
http://static.springsource.org/osgi/docs/1.2.1/reference/html-single/#compendium:cm:managed-service-factories
btw. I don't see this actually being an issue of Karaf, that's the way the OSGi
env. is designed
so +1 for closing :)
was (Author: achim_nierbeck):
@Andrej:
If you have a Service that depends on a external configuration your only option
is to go for managed Service Factories.
There is some documentation for this in the Spring-DM documentation at:
http://static.springsource.org/osgi/docs/1.2.1/reference/html-single/#compendium:cm:managed-service-factories
> Feature installation: synchronization between copiing configuration files and
> installing/starting bundles
> ---------------------------------------------------------------------------------------------------------
>
> Key: KARAF-1189
> URL: https://issues.apache.org/jira/browse/KARAF-1189
> Project: Karaf
> Issue Type: Improvement
> Components: karaf-core
> Reporter: Andrei Shakirin
> Assignee: Christian Schneider
> Labels: configuration, features,
>
> Hi,
> Actually there is no synchronization between installation/starting bundles
> and copiing configuration files.
> It causes sometimes that bundles with OSGi services are already started, but
> appropriate configuration is not yet accepted by ConfigurationAdmin. Result
> is failed services by first installation. After restart problem is resolved.
> Question: is it basically possible to wait untile configuration files are
> accepted by ConfigurationAdmin and only after it start bundles from the
> feature?
> Regards,
> Andrei.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira