Re: Refreshing Bean To Build An IMAP Route Should Have Worked

2025-03-05 Thread Dipak Rai
;> >> >> >> 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

Re: Refreshing Bean To Build An IMAP Route Should Have Worked

2025-03-04 Thread Dipak Rai
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

Re: Refreshing Bean To Build An IMAP Route Should Have Worked

2025-03-04 Thread Modanese, Riccardo
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

Re: Refreshing Bean To Build An IMAP Route Should Have Worked

2025-03-04 Thread Dipak Rai
>>> + "&debugMode="+ debugMode >>> + "&delete=false" >>> + "&unseen=true" >>> + "&delay=" + pollingInterval >>> + "&mail.imaps.auth.mechanisms=XOAUTH2" >>> + "&disc

Re: Refreshing Bean To Build An IMAP Route Should Have Worked

2025-03-04 Thread Dipak Rai
terval >> + "&mail.imaps.auth.mechanisms=XOAUTH2" >> + "&disconnect=true" >> + "&closeFolder=true"; >> } >> >> Regards. >> >> On Tue, Mar 4, 2025 at 4:22 PM Modanese, Riccardo >> wrote: >> >>> H

Re: Refreshing Bean To Build An IMAP Route Should Have Worked

2025-03-04 Thread Dipak Rai
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

Re: Refreshing Bean To Build An IMAP Route Should Have Worked

2025-03-04 Thread Dipak Rai
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

Re: Refreshing Bean To Build An IMAP Route Should Have Worked

2025-03-04 Thread Modanese, Riccardo
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

Re: Refreshing Bean To Build An IMAP Route Should Have Worked

2025-03-04 Thread Dipak Rai
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

Refreshing Bean To Build An IMAP Route Should Have Worked

2025-03-03 Thread Dipak Rai
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