250.12. 例
プロパティーを使用せずにエンドポイント URI で直接プロパティープレースホルダーを使用することも でき
ます。
// properties cool.foo=result // route from("direct:start").to("mock:{{cool.foo}}");
// properties
cool.foo=result
// route
from("direct:start").to("mock:{{cool.foo}}");
そして、必要に応じて複数の場所で使用することができます。
たとえば、ProducerTemplate を使用する場合は、プロパティープレースホルダーを使用することもできます。
template.sendBody("{{cool.start}}", "Hello World");
template.sendBody("{{cool.start}}", "Hello World");