Forum Home » Fuse Distributions » Fuse ESB

Thread: [property-placeholder] Using multiple configuration files

 
This question is not answered. Helpful answers available: 2. Correct answers available: 1.


Permlink Replies: 2 - Last Post: Mar 10, 2010 5:34 PM Last Post By: mazz_97
wlsi

Posts: 4
Registered: 08/14/09
[property-placeholder] Using multiple configuration files
Posted: Jan 27, 2010 9:49 AM
 
  Click to reply to this thread Reply
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" />
<osgix:cm-properties id="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
wlsi

Posts: 4
Registered: 08/14/09
Re: [property-placeholder] Using multiple configuration files
Posted: Feb 15, 2010 10:05 AM   in response to: wlsi in response to: wlsi
 
  Click to reply to this thread Reply
up
mazz_97

Posts: 24
Registered: 05/22/09
Re: [property-placeholder] Using multiple configuration files
Posted: Mar 10, 2010 5:34 PM   in response to: wlsi in response to: wlsi
 
  Click to reply to this thread Reply
Were you able to resolve this issue? I am running into the same issue and would like to know if possible to have multiple configuration files.

Thanks,