And you have that .properties file in the root of the classpath of your Camel bundle?
Camel has API for loading resources. So you can try with:
InputStream is = getCamelContext().getClassResolver().loadResourceAsStream("myProperties.properties");
sorry for the late reply, I interrupted my development for some time.
I found the following solution that works.
RouteBuilder in my class I do:
What is strange is that if I do it in a bean, that does not work.
and in a bean I did not camelContext. I can't call
I have chosen as a solution to pass the routeBuilder classloader on create.