Re: change processor reference at run time

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Re: change processor reference at run time

Claus Ibsen-2
Hi

You cannot change this at runtime, as its setup once.
An alternative is to use a dynamic router, dynamic to (toD) or from
your processor add some java code with indirection where
you can have support for changing the lookup of what to call and then
invoke the actual bean/processor.

On Mon, Jul 29, 2019 at 5:30 AM arshad dar <[hidden email]> wrote:

>
> Hi
> i have a camel route like this
>
> from("direct:a").process(processorRef)
>
> i want to change the processor reference at run time.
>
>
> --
> Arshid



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