[
https://issues.apache.org/jira/browse/CAMEL-17132?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Andrea Cosentino closed CAMEL-17132.
------------------------------------
Resolution: Invalid
First ask on the user mailing list or dev mailing list.
> Routes Include Pattern is not discovering routes templates
> ----------------------------------------------------------
>
> Key: CAMEL-17132
> URL: https://issues.apache.org/jira/browse/CAMEL-17132
> Project: Camel
> Issue Type: Bug
> Components: came-core
> Affects Versions: 3.12.0
> Environment: Java 1.8
> SpringBoot 2.4.4
> Camel 3.12.0
> Reporter: Vaibhav Srivastava
> Priority: Minor
>
> Hi,
> So I needed to have routes templates defined in an XML file to be discovered
> from camel so I'd have routes templates available to me for creation of
> dynamic routes on the go.
> For this I used
> *camel.springboot.routes-include-pattern : classpath:routes/*.xml*. I even
> tried pushing the xml routes templates file into a folder called :
> *classpath:camel-template/** but didn't get a successful scenario.
> These routes were picked up if you test the logic using cucumber tests , they
> caused problems when we deploy the jar locally .
> I kept getting error: unable to find route-template :
> *my-route-template-name.*
> Finally I got them to work when I added each file exact file name like this:
> *camel.springboot.routes-include-pattern :
> classpath:routes/route-template_file1.xml,**classpath:routes_templates/route-template_file2.xml*
> **
> I tried with these two files in the same folder and tried to reference it
> using
> *classpath:routes/*.xml* but didn't work and they were not getting picked up.
>
--
This message was sent by Atlassian Jira
(v8.3.4#803005)