You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cxf.apache.org by Raj Floyd <ra...@gmail.com> on 2011/08/30 19:14:34 UTC
Coloc question
Hi,
If Coloc is enabled on the client side, it will detect whether the server is
local or not. Some questions:
1. What if I do not use Coloc feature and still make my client and server
run in same JVM. Will it work?
2. Is the only role of coloc is to detect the location of server? (whether
local or remote) Which interceptor actually does that IN or OUT?
Thanks.
Raj
Re: Coloc question
Posted by Raj Floyd <ra...@gmail.com>.
Thanks Dan.
On Wed, Aug 31, 2011 at 11:53 PM, Daniel Kulp <dk...@apache.org> wrote:
> On Tuesday, August 30, 2011 10:44:34 PM Raj Floyd wrote:
> > Hi,
> >
> > If Coloc is enabled on the client side, it will detect whether the server
> is
> > local or not. Some questions:
> >
> > 1. What if I do not use Coloc feature and still make my client and server
> > run in same JVM. Will it work?
>
> Yes. It would just use whatever protocol is normally used. However, you
> do
> have to be slightly careful of potential deadlocks. For example, if the
> server HTTP pool is set for 25 threads/connections, and all 25, at the same
> time, try to use a client that calls back into the server via http, they
> could
> fail or timeout as the server wouldn't have any more threads left to
> process
> those requests.
>
> > 2. Is the only role of coloc is to detect the location of server?
> (whether
> > local or remote) Which interceptor actually does that IN or OUT?
>
>
> It's the ColocOutInterceptor that would be on the Clients out chain.
>
>
> --
> Daniel Kulp
> dkulp@apache.org
> http://dankulp.com/blog
> Talend - http://www.talend.com
>
Re: Coloc question
Posted by Daniel Kulp <dk...@apache.org>.
On Tuesday, August 30, 2011 10:44:34 PM Raj Floyd wrote:
> Hi,
>
> If Coloc is enabled on the client side, it will detect whether the server is
> local or not. Some questions:
>
> 1. What if I do not use Coloc feature and still make my client and server
> run in same JVM. Will it work?
Yes. It would just use whatever protocol is normally used. However, you do
have to be slightly careful of potential deadlocks. For example, if the
server HTTP pool is set for 25 threads/connections, and all 25, at the same
time, try to use a client that calls back into the server via http, they could
fail or timeout as the server wouldn't have any more threads left to process
those requests.
> 2. Is the only role of coloc is to detect the location of server? (whether
> local or remote) Which interceptor actually does that IN or OUT?
It's the ColocOutInterceptor that would be on the Clients out chain.
--
Daniel Kulp
dkulp@apache.org
http://dankulp.com/blog
Talend - http://www.talend.com