title: Javax.xml.ws.Endpoint how does it deal with multiple connections?
body: <p>When you use javax.xml.ws.Endpoint.publish to handle incoming restful/soap requests, will it generate a thread for each request? or will I have handle threads myself?</p>
  
  <p>I've been trying to work this out for a couple of days now. The documentation hints on threads, but there is nothing specific about this. </p>
  
  <p>Doc says:  </p>
  
  <blockquote>
    <p>An Executor may be set on the endpoint in order to gain better control
    over the threads used to dispatch incoming requests. For instance,
    thread pooling with certain parameters can be enabled by creating a
    ThreadPoolExecutor and registering it with the endpoint.</p>
  </blockquote>
  
  <p>For me that looks like it handles threads, but you will have no control over them, so adding a ThreadPoolExecutor to execute the threads, you will have a pool of threads you can work with. Is this right?</p>