Luisa Bradusca
Luisa Bradusca

Reputation: 88

Apache Camel escape double Curly Brackets

i am using Apache Camel and I have an endpoint that contains double curly brackets.

For example: " endpoint {{ valueToBeOverriden }}".

When I call the following statement, it throws a ResolveEndpointFailedException.

camelContext.getEndpoint(" endpoint {{ valueToBeOverriden }}")

I noticed the problem are the double curly brackets: {{.

How can I escape them? Do you have any idea?

Thank you, Luisa

Upvotes: 3

Views: 1493

Answers (1)

CookieSoup
CookieSoup

Reputation: 408

Have you created a PropertiesComponent for your Camel Context?

For example:

Configuring PropertiesComponent in Spring XML

<camelContext ...>
    <propertyPlaceholder id="properties" location="com/mycompany/myprop.properties"/>
</camelContext>

You can visit http://camel.apache.org/using-propertyplaceholder.html for more information.

Upvotes: 3

Related Questions