> On Jan 14, 2016, at 9:50 AM, tho huynh ngoc <[email protected]> wrote:
> 
> Hi,
> 
> I have a client declared as follows:
> 
>        JaxWsProxyFactoryBean factory = new JaxWsProxyFactoryBean();
>        factory.setAddress("udp://127.0.0.1:9000/HelloWorld");
>        Map<String, Object> props = new HashMap<String,Object>();
>        factory.getInInterceptors().add(new StreamInterceptor());
>        props.put("cxf.synchronous.timeout", new Integer(600000));
>        factory.setProperties(props);
>        client = factory.create(HelloWorld.class);
>        client.send("hello");
> 
> I read here : http://cxf.apache.org/docs/udp-transport.html
> I know an UDP client can receive multi-responses but i don't understand how
> to configure the client ?
> 
> Can you please help me ?

The best place to look would be in the source for the WSDiscoveryClient where 
it does a probe.   

Basically, you need two things:

1) You must use the async methods and use a callback that can handle being 
called multiple times.

2) You then specify “udp.multi.response.timeout” property on the context to 
tell it how long it should spend collecting responses.  



-- 
Daniel Kulp
[email protected] - http://dankulp.com/blog
Talend Community Coder - http://coders.talend.com

Reply via email to