camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Claus Ibsen <claus.ib...@gmail.com>
Subject Re: CamelProxy and <proxy> on Camel 2.16
Date Wed, 02 Mar 2016 11:41:33 GMT
Yes you should do the same in spring xml, and its just as easier there
is a binding attribute you can turn off.

The spring xml is documented as a xsd so you can just look in there
what is valid to use, and setup your java editor to use that xsd while
editing and the editor can assist you and tell what is valid or not.

On Wed, Mar 2, 2016 at 10:23 AM, Cristiano Costantini
<cristiano.costantini@gmail.com> wrote:
> Hello All,
>
> I'm updating our project to use latest Camel 2.16 from camel 2.13.2
>
> Launching tests, I've discovered the new behavior of the CamelProxy which
> turns on Parameter Binding by default (
> http://camel.apache.org/using-camelproxy.html#UsingCamelProxy-WhatissendontheMessage),
> and makes my tests fails. On the tests the fix has been easy. I've changed
> this code:
>
>     Endpoint endpoint = context.getEndpoint("direct:start");
>     MyService proxy = ProxyHelper.createProxy(endpoint, MyService.class);
>
> to this code which set the binding to false:
>
>     MyService proxy =
>         new ProxyBuilder(context).endpoint("direct:start")
>         .binding(false).build(MyService.class);
>
> My question is:
> in production we use the Spring DSL with the <proxy> tag, for example:
>
> <proxy id="proxyId" serviceInterface="com.example. MyService"
> serviceUrl="direct:start" />
>
> should I turn off binding also on these proxies? How can I do on the Spring
> DSL?
>
> Thank you very much,
> Cristiano



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

Mime
View raw message