[
https://issues.apache.org/activemq/browse/CAMEL-2852?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=61514#action_61514
]
Claus Ibsen commented on CAMEL-2852:
------------------------------------
I think the best we could do is to introduce a {{RouteNamingStrategy}} having
the default as the current implementation.
Then people could switch and we could maybe also distribute one which does as
you suggest, in case we can find a good name for the class :)
> default route name could be based on route url, instead of routeXXX
> -------------------------------------------------------------------
>
> Key: CAMEL-2852
> URL: https://issues.apache.org/activemq/browse/CAMEL-2852
> Project: Apache Camel
> Issue Type: Wish
> Components: camel-core
> Affects Versions: 2.3.0
> Reporter: Karl Palsson
> Priority: Trivial
> Fix For: Future
>
>
> with a routes like {{from("direct:openSubscription").to("mock:blah")}}, All
> the routes get created as route1, route2, route3. This is used as the class
> name when using the logging EIP (the .log() in the DSL since v2.2) and also
> as the node name in the JMX tree of all the routes.
> You can do this:
> {{from("direct:openSubscription").routeId("direct:openSubscription").to("mock:blah")}}
> but it would be nice if the defaults could perhaps be based on the base of
> the URI, as is being done for thread names in CAMEL-2847
> pure wishlist though :)
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.