concept Camel proxy in category camel

appears as: Camel proxy, Camel proxies, Camel Proxy
Camel in Action

This is an excerpt from Manning's book Camel in Action.

Listing 14.6 uses a Camel proxy to hide the middleware, by using the <proxy/> tag. We’ll now look at how this works.

Using a Camel proxy is similar to using Spring remoting, which is a feature in the Spring Framework that offers remoting support for various technologies, making it easier to remote-enable services. Spring has a limited set of technologies that can be used. Camel takes this a big step forward by remote-enabling all of the Camel components.

To understand how a Camel proxy works, let’s start by adding a log in the route from listing 14.6 that will output information about the actual messages sent by the Camel proxy:

Figure 14.5. A sequence diagram showing how a Camel proxy works under the covers, sending a BeanInvocation message to a remote endpoint and waiting for the reply, which eventually is returned to the caller