WebSphere Application Server & Liberty

WebSphere Application Server & Liberty

Join this online group to communicate across IBM product users and experts by sharing advice and best practices with peers and staying up to date regarding product enhancements.

 View Only
Expand all | Collapse all

Liberty: Configuration of JAX-WS communication timeouts like connection timeout, receive-timeout using server.xml

  • 1.  Liberty: Configuration of JAX-WS communication timeouts like connection timeout, receive-timeout using server.xml

    Posted Tue June 11, 2024 09:38 AM
    We are accessing SOAP based WebServices ( using JAX-WS ) on WebSphere Liberty (24.0.0.5) and are looking for the best way to configure communication timeouts like connect-timeout, receive-timeout for our deployment. Ideally without having to change the Java code.

    For JAX-RS there is a server.xml configuration element webTarget which seems to do exactly what we are looking for for the JAX-WS implementation.

    For JAX-WS we have not found any server.xml configuration element to achieve that. The best we've found so far is using the http.conduit.client properties but these require modification of the Java code. Is there any equivalent to the webTarget configuration element for JAX-WS?

    Note: I've also posted the question on StackOverflow 



    ------------------------------
    Hermann Huebler
    Alpium IT Solutions GmbH
    Vienna
    Austria

    #IBMChampion
    ------------------------------


  • 2.  RE: Liberty: Configuration of JAX-WS communication timeouts like connection timeout, receive-timeout using server.xml

    Posted Mon June 17, 2024 07:47 AM
    Edited by Bernd van Oostrum Mon June 17, 2024 08:15 AM

    Hi Hermann,

    Did you check setting sun.net.client.defaultConnectTimeout as a system-property or to set it as a JVM-option?



    ------------------------------
    Bernd van Oostrum
    Leuven
    32478808505
    ------------------------------



  • 3.  RE: Liberty: Configuration of JAX-WS communication timeouts like connection timeout, receive-timeout using server.xml

    Posted Tue June 18, 2024 01:20 AM

    Hello @Bernd van Oostrum, yes, checked into that but isn't this the default for all communications (which I don't want to change)?

    Thanks, Hermann



    ------------------------------
    Hermann Huebler
    Alpium IT Solutions GmbH
    Vienna
    Austria

    #IBMChampion
    ------------------------------