You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by Sanjay Bhattacharya <sa...@gmail.com> on 2021/05/24 11:00:10 UTC

Camel Proxy support in Camel 3

I have an use case where a Spring bean is defined like so:

<bean id="myBean" class="my.java.IntfImpl"/>

The class my.java.IntfImpl, which implements my.java.Intf, needs to be
swapped with a Camel based implementation. For Camel 2.x, I could have done
this:

<proxy id="camelProxy"
            serviceInterface="my.java.Intf"
            serviceUrl="direct:start"/>

And then I rewire my bean like so:

<bean id="myBean" parent="camelProxy"/>

The problem is that Camel 3.x does not support CamelProxy. So how do I
achieve the same with Camel 3.x?


Thanks in advance,

Sanjay