You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cxf.apache.org by tho huynh ngoc <ng...@gmail.com> on 2015/11/12 09:28:12 UTC
Transfer the requests between servers and responds clients
Hi,
I have a problem relating on CXF
My problem is described as follows:
I have two servers A and B that implement the same service.
The client sends asynchronously requests (ex: 100 requests) to the server A
at the same time, (or 100 clients sends requests to the server A) . When
the client receives 60 responses from the server A, the server A suspends.
So, the rest of 40 requests of client in A will be transferred to the
server B. And the server B will respond the client.
Transport protocol is UDP and this is a mandatory requirement.
With CXF, do i implement a module for transferring requests between servers
?
Could you please give me suggestion to do it ?
Thanks,
RE: Transfer the requests between servers and responds clients
Posted by Andrei Shakirin <as...@talend.com>.
Hi,
You can take a look into ConduitSelector implementations: https://cxf.apache.org/javadoc/latest/org/apache/cxf/endpoint/ConduitSelector.html
If default ones (DeferredConduitSelector, FailoverTargetSelector, LoadDistributorTargetSelector) don't fit your purposes, you can create own implementation.
The code of Talend Service Locator (providing load balancing and failover through service instances) can help as well: https://github.com/Talend/tesb-rt-se/tree/master/locator/src/main/java/org/talend/esb/servicelocator/cxf
Regards,
Andrei.
> -----Original Message-----
> From: tho huynh ngoc [mailto:ngocthobkdn@gmail.com]
> Sent: Donnerstag, 12. November 2015 09:28
> To: users@cxf.apache.org
> Cc: tho huynh ngoc
> Subject: Transfer the requests between servers and responds clients
>
> Hi,
> I have a problem relating on CXF
>
> My problem is described as follows:
> I have two servers A and B that implement the same service.
> The client sends asynchronously requests (ex: 100 requests) to the server A at
> the same time, (or 100 clients sends requests to the server A) . When the client
> receives 60 responses from the server A, the server A suspends.
> So, the rest of 40 requests of client in A will be transferred to the server B. And
> the server B will respond the client.
> Transport protocol is UDP and this is a mandatory requirement.
>
> With CXF, do i implement a module for transferring requests between servers ?
> Could you please give me suggestion to do it ?
>
> Thanks,