Hi You cannot poll from a classpath as that's inside a JAR. The file component uses the file system.
On Thu, Mar 2, 2023 at 8:36 AM Reto Peter <reto.pe...@advanceit.ch> wrote: > Hi > > I have a simple issue with the following route: > > This works > > > .pollEnrich("file://src/main/resources/supplier/xxx/article?fileName=ExcelFooter.txt&noop=true&idempotent=false") > But I need to replace the classpath 'src/main/resources' folder, cause > otherwise it doesn't work when its deployed. > How to PollEnrich a file from classpath? > > Camel: 3.20.2 > Spring Boot 2.7.8 > -- Claus Ibsen ----------------- @davsclaus Camel in Action 2: https://www.manning.com/ibsen2