camel-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Claus Ibsen (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CAMEL-10344) RouteIdFactory - That can assign route ids using derived values from uris
Date Tue, 08 Nov 2016 09:51:58 GMT

    [ https://issues.apache.org/jira/browse/CAMEL-10344?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15647071#comment-15647071
] 

Claus Ibsen commented on CAMEL-10344:
-------------------------------------

For the rest routes we may want to replace / with - in the name, so it preserves the full
path and the verb.

rest foo
get 
post

then its 2 routes with id

get-foo
post-foo
Also if there is nested paths we preserve the full name

rest foo
get bar 
post bar

then its

get-foo-bar
post-foo-bar
And we would need some unit tests for rest-dsl routes.

> RouteIdFactory - That can assign route ids using derived values from uris
> -------------------------------------------------------------------------
>
>                 Key: CAMEL-10344
>                 URL: https://issues.apache.org/jira/browse/CAMEL-10344
>             Project: Camel
>          Issue Type: New Feature
>          Components: camel-core
>            Reporter: Claus Ibsen
>            Priority: Minor
>             Fix For: Future
>
>
> When using routes that uses direct/seda etc as route inputs, then you may want to use
their name as the route id, eg
> direct:foo   -> foo
> seda:bar    -> bar
> jms:orders -> orders
> Instead of having route1, route2 as auto assigned names. 
> There could be a NodeIdFactory that assign such names for route's. For example it can
use the context-path of the route url as the name.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message