camel-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Peter Keller (JIRA)" <>
Subject [jira] [Created] (CAMEL-7986) Route disappears if named "route1"
Date Fri, 31 Oct 2014 14:26:35 GMT
Peter Keller created CAMEL-7986:

             Summary: Route disappears if named "route1"
                 Key: CAMEL-7986
             Project: Camel
          Issue Type: Bug
          Components: camel-core
    Affects Versions: 2.14.0
            Reporter: Peter Keller

With below route configuration with {{routeId}} defined as {{route1}}, {{route2}} and intentionally
omitted {{routeId}} for the 3rd route, Camel will auto-generate a {{routeId}} with format
as {{route}} + count for you if you didn't define it. This seems to cause some routes to be

Route definitions:
     .log("route1: ${body}");

      .log("route2: ${body}");

 from("direct:start3") // no route id!
      .log("route3: ${body}");

 ProducerTemplate template = context.createProducerTemplate();
 template.sendBody("direct:start1", "World!");
 template.sendBody("direct:start2", "World!");

This leads to following exception:
    Caused by: No consumers
available on endpoint: Endpoint[direct://start1]

If the {{direct:start3}} route is deleted or {{direct:start}} is renamed, then everything
works as expected. 


This message was sent by Atlassian JIRA

View raw message