Details
-
Bug
-
Status: Closed
-
Minor
-
Resolution: Invalid
-
3.12.0
-
None
-
None
-
Java 1.8
SpringBoot 2.4.4Camel 3.12.0
-
Unknown
Description
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.