How to load all properties from CamelContext

2021-03-18 Thread Michele Olsen
Hi, These 2 lines of code were working for me with Camel 2.22.0 to retrieve all properties from a CamelContext: PropertiesComponent p = (PropertiesComponent) context.getComponent("properties",false) return p.getPropertiesResolver().resolveProperties(context,false,pro.getLocations()) After upgrading

Re: Replacement for “-applicationContext” option in Main

2021-03-18 Thread Michele Olsen
Thank you. In case it helps someone else, my issue was because I was mistakenly using org.apache.camel.main.Main instead of org.apache.camel.spring.Main > On Mar 17, 2021, at 1:24 AM, Claus Ibsen wrote: > > Hi > > The -ac option is still there > https://github.com/apache/camel/blob/master/com

Re: Properties in java config

2021-03-18 Thread Mark Nuttall
Based on what you've said, this is a Spring Boot related (ish) issue only because it is loading the properties. I suggest doing this the Spring Boot way and letting the Spring Boot/Apache Camel integration just work. If you've not see how Spring Boot resolves properties - https://docs.spring.io/spr