Webservice - client service instantiation
Do you know how costly is to create a webservice client service instance ? JavaWebService service = new JavaWebService(); SomePort port = service.getJavaWebServicePort(); Creating the service once and after that reusing same port in a multi threaded environment (webapp) is not dangerous ? Read that the port getPort and port itself is not thread safe but also creating each time a service it might be problematic if it is a costly operation. Any idea ? THanks In the JAX-WS reference implementation (Metro), the creation of the JavaWebService is inexpensive (in our generated clients, we tend to