1 Reply Latest reply on Jul 28, 2008 3:04 AM by ropalka

    Proxy Object Caching

    btallon

      In the following code creating proxy object takes about 500 milliseconds.

      Is there any other mechanism to resuse this proxy object using pooling? or can we use this proxy as singleton?



      String wsdlLocation = System.getProperty("wsdl_url"); //
      URL url = new URL(wsdlLocation);
      String serviceName = "PipCalculatorService";
      QName qname = new QName(namespaceURI, serviceName);
      Service remote = connectService(url, qname);
      PipCalculator proxy = (PipCalculator) remote.getPort(PipCalculator.class);

        • 1. Re: Proxy Object Caching
          ropalka

          There's no webservice proxy pooling support. You can use proxy as singleton. Please take a look to here to see which webservice artifacts are thread safe.