Hi, By one file, you mean gather all in an unique cfg file or one feature ?
Having all in one config is possible, but it gives less flexibility in term of update/reload. One feature containing all configs is also possible, just use the feature in other features: <feature name="config"> <config name="1"/> <config name="2"/> <config name="3"/> </feature> <feature name="f1"> <feature>config</feature> <bundle/> </feature> <feature name="f2"> <feature>config</feature> <bundle/> </feature> Regards JB On 11/08/2018 18:17, imranrazakhan wrote: > i have configuration for components like below, i want to consolidate all > below config in one file, so all feature get config from that file. > > how i change below feature file to achieve it? > > <features xmlns="http://karaf.apache.org/xmlns/features/v1.0.0" > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" > xsi:schemaLocation="http://karaf.apache.org/xmlns/features/v1.0.0"> > <feature name="my-base-configuration" version="${project.version}"> > <config name="com.my.osgi.LockComponent-Core"> > initialDelay = 60 > checkInterval = 60 > </config> > > <config > name="com.my.osgi.internal.DatabaseAppenderComponent-Core"> > aggregationCount = 100 > aggregationInterval = 2000 > </config> > </feature> > > <feature name="my-core-messaging" version="${project.version}"> > <config > name="com.my.osgi.activemq.internal.ActiveMQRouteContext-Core"> > initializationDelay = 15s > restartRoutes = false > </config> > </feature> > > <feature name="my-core-heartbeat-messaging" > version="${project.version}"> > <config > name="com.my.executors.internal.ExecutorServiceComponent-Heartbeat-Core"> > name = heartbeat-monitor > numberOfExecutorThreads = 3 > shutdownTimeoutSeconds = 1 > </config> > </feature> > </features> > > > > > > -- > Sent from: http://karaf.922171.n3.nabble.com/Karaf-User-f930749.html > -- Jean-Baptiste Onofré [email protected] http://blog.nanthrax.net Talend - http://www.talend.com
