[
https://issues.apache.org/jira/browse/CAMEL-17274?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Claus Ibsen updated CAMEL-17274:
--------------------------------
Summary: camel-spring-boot - Using war packaging cannot load XML routes via
routes collector (was: SpringBootRoutesCollector regression does not pick up
xml routes post 3.8)
> camel-spring-boot - Using war packaging cannot load XML routes via routes
> collector
> -----------------------------------------------------------------------------------
>
> 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)