2 Replies Latest reply on Mar 10, 2010 12:34 PM by mfatafta

    [property-placeholder] Using multiple configuration files

    wlsi

      Dear comnunity,

       

      I would like to use multiple configuration files for a bundle,

      One configuration file for the global settings (broker url, company name, ...) and another specific to the bundle (from queue, destination queue, ... )

       

      Currentlly I've something like :

       

      <ctx:property-placeholder properties-ref="com.awl.si.service.alarmingFormatData.cfg.with.defaults" />

       

      persistent-id="com.awl.si.service.alarmingFormatData">

      <prop key="brokerUrl">tcp://127.0.0.1</prop>

      <prop key="fromUri">jms:queue:com.awl.oscar.queue.in</prop>

      </osgix:cm-properties>

       

      But it's not really what we want ... for example if we want to reuse global settings for another bundle we have to copy/paste the properties in another configuration file.

       

      How can I split this in two parts (and is it possible) ? like :

       

      <osgix:cm-properties id="com.awl.si.service.GLOBAL.cfg.with.defaults" persistent-id="com.awl.si.service.GLOBAL"> <prop key="brokerUrl">tcp://127.0.0.1</prop> </osgix:cm-properties>

       

      and

       

      <osgix:cm-properties id="com.awl.si.service.alarmingFormatData.cfg.with.defaults" persistent-id="com.awl.si.service.alarmingFormatData"> <prop key="fromUri">jms:queue:com.awl.oscar.queue.in</prop> </osgix:cm-properties>

      With krgs,

      Julien.

       

      Edited by: wlsi on Jan 27, 2010 9:50 AM

       

      Edited by: wlsi on Jan 27, 2010 9:51 AM