Apache Camel : “direct:start” endpoint – what does it mean?

The “direct:start” above is simply saying that the route starts with a Direct Component named “start”.

The direct endpoint provides synchronous invocation of a route. If you want to send an Exchange to the direct:start endpoint you would create a ProducerTemplate and use the various send methods.

ProducerTemplate template = context.createProducerTemplate();

template.sendBody("direct:start", "This is a test message");

There is nothing special about the name start. It is simply the name you are going to use when referring to the endpoint and could have just as easily been direct:foo.

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)