I've been playing around with creating child instances in karaf with
admin:create and notice that they only copy a minimal portion of the karaf
directory structure. The problem is that my applications use spring-dm cfg
files to read in properties for each bundle like this:
<osgix:cm-properties id="cmProps" persistent-id="com.foo.bar">
<prop key="myProperty">myValue</prop>
</osgix:cm-properties>
<ctx:property-placeholder properties-ref="cmProps" />
Is there any way to copy over these cfg files when I create a child
instance? If not, how can I work around this to be able to read in my
configuration in the child container? It seems like the child is
referencing the parent's system directory, because it is empty yet still
able to resolve all the features. But it must not be doing this for the etc
directory...?
Thank you very much for your help!
Joseph
--
View this message in context:
http://karaf.922171.n3.nabble.com/Copying-etc-cfg-files-to-a-karaf-child-instance-tp4027675.html
Sent from the Karaf - User mailing list archive at Nabble.com.