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/components/camel-spring-main/src/main/java/org/apache/camel/spring/Main.java#L73
> 
> 
>> On Wed, Mar 17, 2021 at 4:36 AM Michele Olsen
>>  wrote:
>> 
>> Hi,
>> My application is currently using version 2.22.0 of Apache-camel. It calls 
>> the run method of org.Apache.camel.spring.Main using a run argument of “-ac 
>> camel-config.xml”. I upgraded the camel version to 3.8.0 but now when the 
>> run method is called, I’m getting an error saying
>> “Unknown option: -ac”
>> What is the equivalent of setting this -ac property in camel 3.8.0?
>> Thanks!
> 
> 
> 
> -- 
> Claus Ibsen
> -
> http://davsclaus.com @davsclaus
> Camel in Action 2: https://www.manning.com/ibsen2


Re: Replacement for “-applicationContext” option in Main

2021-03-16 Thread Claus Ibsen
Hi

The -ac option is still there
https://github.com/apache/camel/blob/master/components/camel-spring-main/src/main/java/org/apache/camel/spring/Main.java#L73


On Wed, Mar 17, 2021 at 4:36 AM Michele Olsen
 wrote:
>
> Hi,
> My application is currently using version 2.22.0 of Apache-camel. It calls 
> the run method of org.Apache.camel.spring.Main using a run argument of “-ac 
> camel-config.xml”. I upgraded the camel version to 3.8.0 but now when the run 
> method is called, I’m getting an error saying
> “Unknown option: -ac”
> What is the equivalent of setting this -ac property in camel 3.8.0?
> Thanks!



-- 
Claus Ibsen
-
http://davsclaus.com @davsclaus
Camel in Action 2: https://www.manning.com/ibsen2