Hi,
The persistent-id actually point to a properties file(with a .cfg
suffix), for a instance, in the example, the persistent-id is
org.apache.servicemix.examples, then it will load a
org.apache.servicemix.examples.cfg properties file from $SMX_HOME/etc
folder, it just leverage the OSGi configAdmin service under the hood.
You may take a look at the README.txt with that example to get more
details.
Btw, this question should be posted to users mailling list, the dev
list is used to discussion SMX project development issues
Freeman
On 2012-3-28, at 下午9:45, londonukm wrote:
Hi Freeman,
Freeman-2 wrote
You need use blueprint property placeholder way, take a look at
camel-
blueprint example shipped with kit which demonstrate how property
placeholder works with blueprint.
I had a look at the example you mentioned but it does not provide me
with
enough information. I have had a look at the xsd for blueprint-cm
and i have
created my property placeholder accordingly. However it does seem
like the
persistent-id attribute is expecting the name of an active bundle
when i am
only interested in providing a configuration file. Can you please
confirm
that it is or is not supporting configuration files and if it is
will this
approach be satisfactory:
/ <cm:property-placeholder id="activemq.placeholder"
persistent-id="file:${trh.conf.folder}activemq.properties">
<cm:default-properties>
<cm:property
name="activemq.transportconnector.openwire.host"
value="localhost"/>
<cm:property
name="activemq.transportconnector.openwire.port"
value="61619"/>
</cm:default-properties>
</cm:property-placeholder>
/
Many Thanks
Graham
--
View this message in context:
http://servicemix.396122.n5.nabble.com/Spring-configuration-problem-using-new-Blueprint-xml-file-in-ActiveMQ-tp5600210p5600531.html
Sent from the ServiceMix - Dev mailing list archive at Nabble.com.
---------------------------------------------
Freeman Fang
FuseSource
Email:ff...@fusesource.com
Web: fusesource.com
Twitter: freemanfang
Blog: http://freemanfang.blogspot.com