Uploaded image for project: 'CXF'
  1. CXF
  2. CXF-2991

Configure the http client connection and receive timeout via BindingProvider.getRequestContext

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 2.3
    • None
    • None

    Description

      We now use configuration xml or cxf property api to configure the http client connection and receive time out . It will make things easy if the client connection or receive timeout can be configured via BindingProvider.getRequestConext() like :
      Greeter greeter = service.getPort(portName, Greeter.class);
      ((javax.xml.ws.BindingProvider)greeter).getRequestContext().put("javax.xml.ws.client.receiveTimeout",
      "50");
      ((javax.xml.ws.BindingProvider)greeter).getRequestContext().put("javax.xml.ws.client.connectionTimeout",
      "50");

      Attachments

        Issue Links

          Activity

            People

              ema Jim Ma
              ema Jim Ma
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: