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

Documentation : Handling client timeout is not clear

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Not A Problem
    • Affects Version/s: 2.4.10, 2.6.6, 2.7.4
    • Fix Version/s: Invalid
    • Labels:
      None
    • Estimated Complexity:
      Unknown

      Description

      http://cxf.apache.org/docs/developing-a-consumer.html says:

      Request context - on the client side, the request context enables you to
      set properties that affect outbound messages. Request context properties
      are applied to a specific port instance and, once set, the properties
      affect every subsequent operation invocation made on the port, until such
      time as a property is explicitly cleared. For example, you might use a
      request context property to set a connection timeout or to initialize data
      for sending in a header.

      Service = new Service();

      Port = Service.getPort();

      ((BindingProvider) Port).getRequestContext().put(
      BindingProviderProperties.CONNECT_TIMEOUT,
      30);
      ((BindingProvider) Port).getRequestContext().put(
      BindingProviderProperties.REQUEST_TIMEOUT,
      30);

      But it does not work.

      See this question on mailing list:
      http://mail-archives.apache.org/mod_mbox/cxf-users/201305.mbox/%3CCAH9fUpYxuZSv0H81hK9eX75a%2BF16WLjGmyLa1phZCck95bsUFA%40mail.gmail.com%3E

        Attachments

          Activity

            People

            • Assignee:
              dkulp Daniel Kulp
              Reporter:
              p.mouawad@ubik-ingenierie.com Philippe Mouawad
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: