You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by Xilai Dai <xl...@talend.com> on 2021/11/01 07:56:48 UTC
You can only set routeId one time per route
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/>
Re: You can only set routeId one time per route
Posted by Xilai Dai <xl...@talend.com>.
Thanks a lot Maarten!
We will try to solve this migration problem in a proper way to our end-user.
Thank you!
________________________________
From: Maarten Donderwinkel <M....@topdesk.com>
Sent: Monday, November 1, 2021 6:30 PM
To: users@camel.apache.org <us...@camel.apache.org>
Subject: Re: You can only set routeId one time per route
I think you’re referring to this Jira issue:
https://urldefense.com/v3/__https://issues.apache.org/jira/browse/CAMEL-13525__;!!CiXD_PY!Hz4wMIsX9aBPVOkp-YJSiyfajfXgyL819qNROh5KTY1fRwqtAgNb8ho6s5P5$
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 <us...@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 <cl...@gmail.com>
Sent: Monday, November 1, 2021 4:37 PM
To: users@camel.apache.org <us...@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/>
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/>
Re: You can only set routeId one time per route
Posted by Maarten Donderwinkel <M....@topdesk.com>.
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 <us...@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 <cl...@gmail.com>
Sent: Monday, November 1, 2021 4:37 PM
To: users@camel.apache.org <us...@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/>
Re: You can only set routeId one time per route
Posted by Xilai Dai <xl...@talend.com>.
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 <cl...@gmail.com>
Sent: Monday, November 1, 2021 4:37 PM
To: users@camel.apache.org <us...@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$ @davsclaus
Camel in Action 2: 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/>
Re: You can only set routeId one time per route
Posted by Claus Ibsen <cl...@gmail.com>.
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
-----------------
http://davsclaus.com @davsclaus
Camel in Action 2: https://www.manning.com/ibsen2