Camel experiment with using vertx as eventbus for routing engine.
Project: http://git-wip-us.apache.org/repos/asf/camel/repo Commit: http://git-wip-us.apache.org/repos/asf/camel/commit/45050b11 Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/45050b11 Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/45050b11 Branch: refs/heads/eventbus Commit: 45050b110b1c45e6aa374e865d3233b12d8e36a7 Parents: 3e3e180 Author: Claus Ibsen <davscl...@apache.org> Authored: Fri Apr 8 13:28:39 2016 +0200 Committer: Claus Ibsen <davscl...@apache.org> Committed: Fri Apr 8 13:28:39 2016 +0200 ---------------------------------------------------------------------- .../apache/camel/component/vertx/eventbus/VertxCamelProducer.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/camel/blob/45050b11/components/camel-vertx/src/main/java/org/apache/camel/component/vertx/eventbus/VertxCamelProducer.java ---------------------------------------------------------------------- diff --git a/components/camel-vertx/src/main/java/org/apache/camel/component/vertx/eventbus/VertxCamelProducer.java b/components/camel-vertx/src/main/java/org/apache/camel/component/vertx/eventbus/VertxCamelProducer.java index 7b411c9..e77b8b6 100644 --- a/components/camel-vertx/src/main/java/org/apache/camel/component/vertx/eventbus/VertxCamelProducer.java +++ b/components/camel-vertx/src/main/java/org/apache/camel/component/vertx/eventbus/VertxCamelProducer.java @@ -63,7 +63,8 @@ public class VertxCamelProducer extends ServiceSupport implements Handler<Messag public void handle(Message<Exchange> event) { Exchange exchange = event.body(); String url = (String) exchange.removeProperty("CamelVertxUrl"); - // TODO: execute blocking + // ideally we should know if a endpoint support async procesing by nature or not + // then we can call the blocking vs non-blocking here in vert.x template.send(url, exchange); // signal we are done event.reply(exchange, options);