Hi Daniel,

I'm also interested in this question.
Is this property picked up by other transports as well or just UDP?

Thanks.

André Costa Lima


2015-04-10 20:35 GMT+01:00 tho huynh ngoc <[email protected]>:

> Thank Daniel,
> I added the code:
> Map<String, Object> props = new HashMap<String,Object>();
> props.put("cxf.synchronous.timeout", new Integer(600000)); //new value of
> timeout, ex: 10 minutes
> factory.setProperties(props);
> It works fine.
> Tho
>
> 2015-04-10 19:41 GMT+02:00 Daniel Kulp <[email protected]>:
>
> > You can set a request property of:
> >
> > "cxf.synchronous.timeout"
> >
> > to something higher (in milliseconds).   However, the default is 60
> > seconds.  If you are getting those timeouts, it's quite likely that the
> UDP
> > response was just lost.   UDP doesn't have any guarantee delivery.   If
> the
> > network is busy or host is busy or any other number of things, it could
> be
> > lost.
> >
> > Dan
> >
> >
> > > On Apr 10, 2015, at 12:47 PM, tho huynh ngoc <[email protected]>
> > wrote:
> > >
> > > Hi,
> > >
> > > I implemented a Apache CXF Client, as following
> > >        factory = new JaxWsProxyFactoryBean();
> > >        factory.getInInterceptors().add(new LoggingInInterceptor());
> > >        factory.getOutInterceptors().add(new LoggingOutInterceptor());
> > >        factory.setServiceClass(Service.class);
> > >        factory.setAddress("udp://192.168.56.1:9292/print");
> > >        service = (Service) factory.create();
> > > I created many clients (1000 clients) sending msg to a UDP server.
> > > After receiving a few responses, some clients throw :
> > > javax.xml.ws.soap.SOAPFaultException: Timed out waiting for response to
> > > operation <http://service/>print.
> > >
> > > How to increase the timeout value for waiting of client ?
> > >
> > > Best regards,
> >
> > --
> > Daniel Kulp
> > [email protected] - http://dankulp.com/blog
> > Talend Community Coder - http://coders.talend.com
> >
> >
>

Reply via email to