You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cxf.apache.org by Maatari <ok...@yahoo.fr> on 2011/01/13 15:17:11 UTC
ClientFactoryBean vs ClientProxyFactoryBean
Hi everyone,
Can someone tell me what is the difference between "ClientFactoryBean" and
"ClientProxyFactoryBean" ?
Many thanks.
--
View this message in context: http://cxf.547215.n5.nabble.com/ClientFactoryBean-vs-ClientProxyFactoryBean-tp3339819p3339819.html
Sent from the cxf-user mailing list archive at Nabble.com.
Re: ClientFactoryBean vs ClientProxyFactoryBean
Posted by Daniel Kulp <dk...@apache.org>.
On Thursday 13 January 2011 9:17:11 am Maatari wrote:
> Hi everyone,
>
> Can someone tell me what is the difference between "ClientFactoryBean" and
> "ClientProxyFactoryBean" ?
>
> Many thanks.
The "ClientFactoryBean" creates our "ClientImpl" objects which contains our
generic "invoke" methods and handles the contexts and such. The ClientProxy
versions create the Proxy wrappers for the ClientImpl that provide the nice
typed instances that implement the passed in interfaces and such. They serve
slightly different purposes.
Most USERS that are working with typed interfaces and such prefer the Proxy.
It's nice to work with.
Most frameworks (like Camel and SMX and such) generally work with the Client
directly as the proxies require generated (or hand coded) interfaces.
--
Daniel Kulp
dkulp@apache.org
http://dankulp.com/blog