Something like this should work.
<!-- It should be overridden from the $SMX_HOME/etc/myconfigs.cfg file -->
<osgix:cm-properties id="dcProps" persistent-id="myconfigs">
<!-- AMQ specific -->
<prop key="amq.connection.url">tcp://localhost:61616</prop>
</osgix:cm-properties>
<ctx:property-placeholder properties-ref="dcProps"/>
On Dec 7, 2010, at 8:06 PM, Freeman Fang wrote:
> Hi Scott,
>
> Please take a look at camel-osgi example shipped with kit and there's the
> demonstration about how to use property place holder in spring-dm style
> configuration, there should be no much difference with blueprint style, and
> as you said you are using spring-dm style so I guess that example is
> something that you're looking for.
>
> Freeman
> On 2010-12-8, at 上午2:41, Scott Parkerson wrote:
>
>> On Tue, Dec 7, 2010 at 10:12 AM, Jean-Baptiste Onofré
>> <[email protected]>wrote:
>>
>>> Hi Scott,
>>>
>>> I'm not sure to totally understand what you mean by "share configuration".
>>>
>>> Anyway, using Blueprint property placeholder, you can load the same
>>> configuration file (via the ConfigAdmin service) in two or more bundles.
>>>
>>> I *think* that this is what I want. I assume that Blueprints are supported
>> by Servicemix 4.2, right? And, is there a decent example of using Blueprints
>> with ServiceMix 4? I've been using Spring dm-style stuff to wire in the
>> configuration so far.
>>
>> --sgp
>
>
> --
> Freeman Fang
>
> ------------------------
>
> FuseSource: http://fusesource.com
> blog: http://freemanfang.blogspot.com
> twitter: http://twitter.com/freemanfang
> Apache Servicemix:http://servicemix.apache.org
> Apache Cxf: http://cxf.apache.org
> Apache Karaf: http://karaf.apache.org
> Apache Felix: http://felix.apache.org
>