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

rodrigo coelho commented on CAMEL-19342:
----------------------------------------

Update:

I've changed the *DefaultModel.addRouteDefinitions(*
Collection<RouteDefinition> routeDefinitions
*)* method to clear the routeDefinitions list after completion.
{code:java}
if (shouldStartRoutes()) {
   ((ModelCamelContext) getCamelContext()).startRouteDefinitions(list);
}
//New line
this.routeDefinitions.clear(); {code}
Compiled the 4.0.0-SNAPSHOT (both camel-core and camel-springboot), and i don't 
see the issue anymore.

Since i don't if this change can produce side effects, can you please help?

Thanks.

 

> Rest Inline Routes mixed with direct routes.
> --------------------------------------------
>
>                 Key: CAMEL-19342
>                 URL: https://issues.apache.org/jira/browse/CAMEL-19342
>             Project: Camel
>          Issue Type: Bug
>          Components: came-core
>    Affects Versions: 3.20.4, 4.0-M3
>            Reporter: rodrigo coelho
>            Priority: Major
>
> Hello, 
> For more information please follow Zulip thread:
> [https://camel.zulipchat.com/#narrow/stream/257301-camel-spring-boot/topic/Inline.20Routes.20.28Default.20Model.29]
> Here is my code:
> [https://github.com/rodrigoserracoelho/rest-demo]
> Do let me know if you need more info.
> Thanks.
> BR,
> Rodrigo



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to