-2

I want to set the delay for my camel file consumer. I am using blueprint DSL. Not sure how do I set it dynamically.

<from id="_from1" uri="file:<filepath>?delay=1000&amp;delete=true"/>

I want the value "1000" to be picked up from a property file.

Pulkit
  • 21
  • 6

2 Answers2

2

Read the documentation about using property placeholders: http://camel.apache.org/using-propertyplaceholder.html it covers how to do that.

Claus Ibsen
  • 56,060
  • 7
  • 50
  • 65
  • When I try using simple it throws a compile time error. The parameter delay requires a numeric value. `uri="file:{{PFlowDir}}{{PFlowIn_AEROW}}?delay=simple{timeout}` – Pulkit Dec 19 '17 at 09:09
0

Got it working by adding the correct property placeholder tags {{delay}}.

Using $simple{delay} throws compile time error.

Pulkit
  • 21
  • 6