You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Claus Ibsen (Jira)" <ji...@apache.org> on 2021/12/06 09:15:00 UTC

[jira] [Commented] (CAMEL-17274) SpringBootRoutesCollector regression does not pick up xml routes post 3.8

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

Claus Ibsen commented on CAMEL-17274:
-------------------------------------

Okay so a "difference" is that your spring boot application is packaged as a war and not a jar - most users use jar.


> SpringBootRoutesCollector regression does not pick up xml routes post 3.8
> -------------------------------------------------------------------------
>
>                 Key: CAMEL-17274
>                 URL: https://issues.apache.org/jira/browse/CAMEL-17274
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-spring-boot
>    Affects Versions: 3.8.0, 3.9.0, 3.10.0, 3.11.0, 3.12.0, 3.13.0
>            Reporter: Michael Andre Pearce
>            Assignee: Claus Ibsen
>            Priority: Major
>             Fix For: 3.14.0
>
>         Attachments: springboot-camel.zip
>
>
> A regression is caused by CAMEL-15560 by removal of collectXmlRoutesFromDirectory methods, which overrode default method to use spring's application context, but no equivalent was made in replacement.
> To fix this is seems simply a new implementation of new equivalent method, re-introducing loading resource by the spring applicationContext.
> Unfortunately it seems this is only seen/issue up once a fully packaged springboot jar/war is created and run, and route xml's fail to load, as such very hard to unit test, and like wise no pre-existing tests clearly for old behaviour either, thus it broke.
> related to: [https://stackoverflow.com/questions/68065987/apache-camel-routes-in-xml-not-loaded-in-spring-boot/]
>  
> Attached is a sample extracted application demonstrating the issue, see its readme. The zipped app is currently working using 3.7.6 but you will note on changing camel dependency to 3.8.0 the routes do not load, nor start.
>  
> A PR will be linked to this ticket that fixes this issue.



--
This message was sent by Atlassian Jira
(v8.20.1#820001)