;>
>>
>>
>> Without Spring the solution I adopted was to create the Camel context
>> with my Registry instance
>>
>>
>>
>> org.apache.camel.support.DefaultRegistry defaultRegistry = new
>> DefaultRegistry();
>>
>> //register your be
your beans
>
> org.apache.camel.CamelContext camelContext = new
> DefaultCamelContext(defaultRegistry);
>
>
>
> This is not dynamic, so I suppose you have to intercept some event.
>
>
>
> Hope this can help.
>
>
> From: Dipak Rai
> Date: Tuesday, 4 March
dynamic, so I suppose you have to intercept some event.
Hope this can help.
From: Dipak Rai
Date: Tuesday, 4 March 2025 at 17:38
To: users@camel.apache.org
Subject: Re: Refreshing Bean To Build An IMAP Route Should Have Worked
The registry.bind () documentation says that "*Binds the bean t
>>> + "&debugMode="+ debugMode
>>> + "&delete=false"
>>> + "&unseen=true"
>>> + "&delay=" + pollingInterval
>>> + "&mail.imaps.auth.mechanisms=XOAUTH2"
>>> + "&disc
terval
>> + "&mail.imaps.auth.mechanisms=XOAUTH2"
>> + "&disconnect=true"
>> + "&closeFolder=true";
>> }
>>
>> Regards.
>>
>> On Tue, Mar 4, 2025 at 4:22 PM Modanese, Riccardo
>> wrote:
>>
>>> H
ng Camel with and
>> without Spring (and it works) but, I did it before starting the route.
>> From my understanding you are trying to replace a bean in the context
>> once the route is running, am I right?
>> If so, did you try to restart the route once you replace the bean i
te is running, am I right?
> If so, did you try to restart the route once you replace the bean in the
> context?
>
> Riccardo
>
> From: Dipak Rai
> Date: Tuesday, 4 March 2025 at 11:47
> To: users@camel.apache.org
> Subject: Re: Refreshing Bean To Build An IMAP Route Should Hav
you replace the bean in the
context?
Riccardo
From: Dipak Rai
Date: Tuesday, 4 March 2025 at 11:47
To: users@camel.apache.org
Subject: Re: Refreshing Bean To Build An IMAP Route Should Have Worked
I'll rephrase my question here.
Is it possible to just kick out the old bean from the
I'll rephrase my question here.
Is it possible to just kick out the old bean from the Camel Context (and in
turn from the Spring context) and inject a new bean while using the same to
build a route dynamically as shown below? I don't see any explicit '
*unbind()*' method with the *ApplicationContex
Hi,
In the below snippet I am trying to dynamically build the IMAP route by
refreshing my 'exchangeAuthenticator' bean. Camel seemingly supports only
bean by name injection into the route. Although I am able to instantiate
the bean with new values yet the route refers to the old bean values and
fa
10 matches
Mail list logo