[ https://issues.apache.org/jira/browse/CAMEL-3673?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12999753#comment-12999753 ]
Claus Ibsen commented on CAMEL-3673: ------------------------------------ Inside the <camelContext> you should use the {{ }} as syntax. This is the placeholder tokens Camel uses. Well the blueprint placeholder may support some inside <camelContext> but only those which are "factory beans". However inside <route> you must use {{ }} as that part is JAXB parsed by Camel itself. The power that the {{ }} brings to the table is that its dynamic and ad-hoc. So you can add new routes at runtime, or use dynamic patterns with the recipient list EIP etc, all using placeholders. Likewise in scripting expressions such as the Simple language. We may in the future add support for defining the Camel tokens so you can change them from {{ }} to ${ } to match up with blueprint. The reason we picked {{ }} was to avoid clashes with Spring, which was kinda hard to control. > Property placeholders do not work with camel-blueprint > ------------------------------------------------------- > > Key: CAMEL-3673 > URL: https://issues.apache.org/jira/browse/CAMEL-3673 > Project: Camel > Issue Type: Bug > Components: camel-blueprint > Affects Versions: 2.6.0 > Reporter: Achim Nierbeck > Assignee: Claus Ibsen > > if I have a route that looks like: > {code} > <?xml version="1.0" encoding="UTF-8"?> > <blueprint xmlns="http://www.osgi.org/xmlns/blueprint/v1.0.0" > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" > xmlns:cm="http://aries.apache.org/blueprint/xmlns/blueprint-cm/v1.0.0" > xmlns:ext="http://aries.apache.org/blueprint/xmlns/blueprint-ext/v1.0.0" > xsi:schemaLocation="http://www.osgi.org/xmlns/blueprint/v1.0.0 > > http://www.osgi.org/xmlns/blueprint/v1.0.0/blueprint.xsd"> > <cm:property-placeholder persistent-id="camel.blueprint" /> > <camelContext id="camel" trace="false" > xmlns="http://camel.apache.org/schema/blueprint"> > <route> > <from uri="file://${directory.in}/" /> > <to uri="file://${directory.out}/" /> > </route> > </camelContext> > </blueprint> > {code} > The placeholders aren't replaced by the actual value. -- This message is automatically generated by JIRA. - For more information on JIRA, see: http://www.atlassian.com/software/jira