JBoss Community

Is there a way to set a JaxWS connection timeout which works for CXF and Native

reply from Alessio Soldano in JBoss Web Services CXF - View the full discussion
Is there also a way of configuring the timeout in JBossWS-CXF?

     

    You need to use what CXF provides; you can do this by properly setting the bus in advance (see https://cwiki.apache.org/confluence/display/CXF20DOC/Client+HTTP+Transport+%28including+SSL+support%29 , basically you need to tune the client http conduit) or directly configuring you client using the cxf api:

     

    Client client = ClientProxy.getClient(proxy);
    ((ClientImpl)client).setSynchronousTimeout(90 * 1000); //90 secs
    

     

    Is there a way of doing this so it runs on either stack

     

    Not ATM, I've just created https://jira.jboss.org/browse/JBWS-3114 , scheduled for the 3.4.0 (the first version coming out)

     

    It would be useful if this configuration option were defined in the JaxWS standard. Is there any chance of this?

    We can think about a proposal, just having a standard prop for that would probably be a good start...

    Reply to this message by going to Community

    Start a new discussion in JBoss Web Services CXF at Community