title: Java Web Services Container
body: <p>I have just started learning Java Web Services ( JAX-WS ) and have one question. The reference documentation always talks about Web Services container. My question is : What is a Web Services container and why do we need it.
  I saw a simple example of JAX-WS in book "java web services up and running" where the web service is published using:</p>
  
  <pre><code>Endpoint.publish("http://127.0.0.1:9876/ts", new TimeServerImpl());
  </code></pre>
  
  <p>This example did not require me to host a web service in a Web Server / App Server or any container. </p>
  
  <p>and I was also able to access this web service.</p>
  
  <p>So what is a container, why do we need it for web services?</p>