I think you’re referring to this Jira issue:
https://issues.apache.org/jira/browse/CAMEL-13525

Why do you need to set/override the routeid multiple times for 1 route?
You could either:

  *   Dynamically build/remove your routes via a RouteBuilder where you have 
control of setting that routeid just once (but still dynamically)
  *   Use other unique identifiers for that route (per example set a property 
for the ‘customerid’ that triggers the specific route (or whatever the use-case 
is).

Kind regards,

Maarten Donderwinkel
Senior Technical Consultant


From: Xilai Dai <xl...@talend.com>
Date: Monday, 1 November 2021 at 10:07
To: users@camel.apache.org <users@camel.apache.org>
Subject: Re: You can only set routeId one time per route
ATTENTION: This email originated from outside of the organization.


Hi Claus,

It was allowed override it in Camel 2.x.
was there a Camel Jira for it?

Because the users using Camel 2 already created Routes with routeId() inside 
anywhere.

Thanks.
________________________________
From: Claus Ibsen <claus.ib...@gmail.com>
Sent: Monday, November 1, 2021 4:37 PM
To: users@camel.apache.org <users@camel.apache.org>
Subject: Re: You can only set routeId one time per route


Warning! External email. Exercise caution when opening attachments or clicking 
any links.


Yes a route should not change its id

On Mon, Nov 1, 2021 at 8:57 AM Xilai Dai <xl...@talend.com> wrote:
>
> Hi there,
>
> What's the good reason in Camel 3 the routeId() can be set only once?
>
>     public RouteDefinition routeId(String id) {
>         if (hasCustomIdAssigned()) {
>             throw new IllegalArgumentException("You can only set routeId one 
> time per route.");
>         }
>         setId(id);
>         return this;
>     }
>
> is there a Camel Jira for it?
>
> Thanks!
>
> As a recipient of an email from Talend, your contact personal data will be on 
> our systems. Please see our privacy notice (updated August 2020) at Talend, 
> Inc. <https://www.talend.com/contacts-privacy-policy/>
>
>


--
Claus Ibsen
-----------------
https://urldefense.com/v3/__http://davsclaus.com__;!!CiXD_PY!C6T30Kv7TOpwCeCMZtbpZUUp-zp25uxig22TmcmuoiJMoor5JxOKO5wZ3H4c$<https://urldefense.com/v3/__http:/davsclaus.com__;!!CiXD_PY!C6T30Kv7TOpwCeCMZtbpZUUp-zp25uxig22TmcmuoiJMoor5JxOKO5wZ3H4c$>
  @davsclaus
Camel in Action 2: 
https://urldefense.com/v3/__https://www.manning.com/ibsen2__;!!CiXD_PY!C6T30Kv7TOpwCeCMZtbpZUUp-zp25uxig22TmcmuoiJMoor5JxOKO6QhtIzg$<https://urldefense.com/v3/__https:/www.manning.com/ibsen2__;!!CiXD_PY!C6T30Kv7TOpwCeCMZtbpZUUp-zp25uxig22TmcmuoiJMoor5JxOKO6QhtIzg$>

As a recipient of an email from Talend, your contact personal data will be on 
our systems. Please see our privacy notice (updated August 2020) at Talend, 
Inc. <https://www.talend.com/contacts-privacy-policy/>

Reply via email to