You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cxf.apache.org by Itamar_t <it...@hedgehocpoker.com> on 2011/11/30 19:24:42 UTC

client proxies and performance

Hi,

I'm using cxf client to invoke services on a payment gateway.
on application startup, I'm doing:

 SomeService ss = new SomeService(wsdlURL, SERVICE_NAME);
 ISomeService port = ss.getBasicHttpBindingISomeService();

then I'm using this port from my application.

my question is: can it be a bottleneck that I'm only using a single port?
should I pool the 'port' instances? and if I should - is there any out of
the box solution for this? (if its need to be built, I'll be happy to upload
my code)

Thanks in advance,
Itamar

--
View this message in context: http://cxf.547215.n5.nabble.com/client-proxies-and-performance-tp5036379p5036379.html
Sent from the cxf-user mailing list archive at Nabble.com.

Re: client proxies and performance

Posted by Itamar_t <it...@hedgehocpoker.com>.
Thnaks Dan for your reply, And thx CXF team for a great product.

--
View this message in context: http://cxf.547215.n5.nabble.com/client-proxies-and-performance-tp5036379p5039783.html
Sent from the cxf-user mailing list archive at Nabble.com.

Re: client proxies and performance

Posted by Daniel Kulp <dk...@apache.org>.
On Wednesday, November 30, 2011 10:24:42 AM Itamar_t wrote:
> Hi,
> 
> I'm using cxf client to invoke services on a payment gateway.
> on application startup, I'm doing:
> 
>  SomeService ss = new SomeService(wsdlURL, SERVICE_NAME);
>  ISomeService port = ss.getBasicHttpBindingISomeService();
> 
> then I'm using this port from my application.
> 
> my question is: can it be a bottleneck that I'm only using a single port?
> should I pool the 'port' instances? and if I should - is there any out of
> the box solution for this? (if its need to be built, I'll be happy to upload
> my code)

It shouldn't be much of a bottleneck at all EXCEPT for WS-Trust/WS-SecureConv 
cases.   Also see: 
http://cxf.apache.org/faq#FAQ-AreJAXWSclientproxiesthreadsafe%3F
for some more information about the thread safety of the proxy.


Dan


> 
> Thanks in advance,
> Itamar
> 
> --
> View this message in context:
> http://cxf.547215.n5.nabble.com/client-proxies-and-performance-tp5036379p50
> 36379.html Sent from the cxf-user mailing list archive at Nabble.com.
-- 
Daniel Kulp
dkulp@apache.org - http://dankulp.com/blog
Talend Community Coder - http://coders.talend.com