Hello everyone

! I have a question that I couldn't manage to fully answer myself. I am wondering what is the difference between using Endpoint.publish("some address", new SomeWebServiceClass()) and publishing it on
tomcat using WAR file. I suppose the first is publishing it on
Java Virtual Machine? But are there any differences in threads. How many threads can a web service that is published on tomcat using War file have ?