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:
Endpoint.publish("http://127.0.0.1:9876/ts", new TimeServerImpl());
This example did not require me to host a web service in a Web Server / App Server or any container.
and I was also able to access this web service.
So what is a container, why do we need it for web services?