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

CXF "Thread-local" Request Context feature doesn't work with Dispatch Objects

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Cannot Reproduce
    • 2.4.4
    • Invalid
    • JAX-WS Runtime
    • None
    • Ubuntu 11.10 64 bits

    • Unknown

    Description

      I am using the dispatch object for creating dynamic webservice clients :

      Service service=Service.create(serviceName);
      service.addPort(portName, JMSSpecConstants.SOAP_JMS_SPECIFICATION_TRANSPORTID, address);

      Dispatch<SOAPMessage> dispatch = service.createDispatch(builder.build(),
      SOAPMessage.class, Mode.MESSAGE,
      enabledRequiredwsf);

      ((BindingProvider)dispatch).getRequestContext().put("thread.local.request.context", true);

      I need to use the request context of each dispatch object with a thread local scope. The use of "thread.local.request.context" in the request context of dispatch objects doesn't seem to affect its default behavior: The request context remains shared by all dispatch objects within the same classloader. Is the thread-local request context feature supposed to work with Dispatch objects also, or only with conventional jax-ws proxies?

      Attachments

        Activity

          People

            dkulp Daniel Kulp
            bhlangonijr Ben-Hur Carlos Vieira Langoni JĂșnior
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: