No, one service, one cfg file. You need to make sure you have a different service for it or use a ManagedService Factory for it. In that case you'll have a new service instance connected to another cfg file. For example: org.whatever.package-one.cfg org.whatever.package-two.cfg
will result in two Services, where the first is configured with the property of config file one and the second with file two. regards, Achim 2014-06-26 16:01 GMT+02:00 Laci Gaspar <[email protected]>: > ok, thanks. I seem to have a different issue, which I didn't notice, > sorry. > > We want to have two configfiles for our bundle (a common and specific one). > So in the features.xml we have: > <configfile finalname="etc/${project.artifactId}.cfg" > > override="true">mvn:${project.groupId}/${project.artifactId}/${project.version}/cfg/development</configfile> > > <configfile finalname="etc/MspEtgCommon.cfg" > > override="true">mvn:${project.groupId}/MspEtgCommon/${project.version}/cfg/development</configfile> > > But the bundle only gets notified about changes in its own config file. > Can I register two config files with > registerService(ManagedService.class.getName(), new ConfigUpdater() , > properties); > > Regards, > Laci > > > > On 26.06.2014 14:02, Achim Nierbeck wrote: > > No, and it actually shouldn't matter since the service in your bundle will > be re-configured the minute a new configuration is present. > > regards, Achim > > > 2014-06-26 13:54 GMT+02:00 Laci Gaspar <[email protected]>: > >> Hi >> >> A question about the load sequence of karaf 2.3.3: >> >> 1. >> I have a feature.xml: >> <configfile finalname="etc/MspEtgCommon.cfg" >> >> override="true">mvn:${project.groupId}/MspEtgCommon/${project.version}/cfg/development</configfile> >> >> <bundle>mvn:ch.curabill.msp.etg/MspEtgCommon/${project.version}</bundle> >> <bundle>mvn:ch.curabill.msp.commons/MspCommons/${project.version}</bundle> >> <bundle>mvn:${project.groupId}/${project.artifactId}/${project.version}</bundle> >> >> >> When I install the feature, the bundle MspCommons starts before the >> Config file etc/MspEtgCommon.cfg is present. Can I force karaf to do it the >> other way round? >> >> Thanks. >> >> Regards >> Laci >> > > > > -- > > Apache Member > Apache Karaf <http://karaf.apache.org/> Committer & PMC > OPS4J Pax Web <http://wiki.ops4j.org/display/paxweb/Pax+Web/> Committer & > Project Lead > blog <http://notizblog.nierbeck.de/> > > Software Architect / Project Manager / Scrum Master > > > -- Apache Member Apache Karaf <http://karaf.apache.org/> Committer & PMC OPS4J Pax Web <http://wiki.ops4j.org/display/paxweb/Pax+Web/> Committer & Project Lead blog <http://notizblog.nierbeck.de/> Software Architect / Project Manager / Scrum Master
