Solution:

<beans:bean id="myBundleConfigurer"
   
class="org.springframework.beans.factory.config.PropertyPlaceholderConfig">
  <beans:property name="ignoreUnresolvablePlaceholders" value="true"/>
  <beans:property name="propertiesArray">
    <beans:array>
      <osgix:cm-properties id="myAppProps" persistent-id="myApp.props"/>
      <osgix:cm-properties id="myBundleProps"
persistent-id="my.bundle.props"/>
    </beans:array>
  </beans:property>
</beans:bean>

So, that's how you make multiple configuration files, obtained from the
config admin service, available throughout your bundle.

-----
Karafman
Slayer of the JEE
Pounder of the Perl Programmer

-- 
View this message in context: 
http://karaf.922171.n3.nabble.com/Placing-properties-files-in-the-classpath-tp2054553p2291668.html
Sent from the Karaf - User mailing list archive at Nabble.com.

Reply via email to