You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Vaibhav Srivastava (Jira)" <ji...@apache.org> on 2021/10/26 13:14:00 UTC
[jira] [Created] (CAMEL-17132) Routes Include Pattern is not
discovering routes templates
Vaibhav Srivastava created CAMEL-17132:
------------------------------------------
Summary: 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
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)