Path: csiph.com!usenet.pasdenom.info!aioe.org!eternal-september.org!feeder.eternal-september.org!mx04.eternal-september.org!.POSTED!not-for-mail From: Daniele Futtorovic Newsgroups: comp.lang.java.programmer Subject: Re: Private Tomcat/JVM Date: Sun, 28 Oct 2012 15:11:40 +0100 Organization: A noiseless patient Spider Lines: 25 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Injection-Date: Sun, 28 Oct 2012 14:11:45 +0000 (UTC) Injection-Info: mx04.eternal-september.org; posting-host="014c81b1a73806fcf41c4af5b0a53ca2"; logging-data="2133"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18ShRjuyX3Xed621UXfUYtD" User-Agent: Mozilla/5.0 (Windows NT 5.1; rv:12.0) Gecko/20120428 Thunderbird/12.0.1 In-Reply-To: Cancel-Lock: sha1:glUsruSsS1hZqrx88Zmg6ZKNY5o= Xref: csiph.com comp.lang.java.programmer:19547 On 28/10/2012 03:37, sb5309 allegedly wrote: > I am looking for a java web host so that I can write java programs that listens to a certain port. > > I discover 2 types of hosts: private java (JVM) host and private Tomcat host (more expensive). > > I am not too sure what is the difference. Can someone explain a little ? Firstly, mind that the word "private" makes no sense in this combination, and that Tomcat sits atop a JVM. In a nutshell, Tomcat is a /Servlet Engine/, providing you with a framework to perform web-related operations. It is but one of a couple similar frameworks, cf. for instance . If you are planning to do web/HTTP related operations, and especially if your server is going to perform more than one very limited function, I would recommend that you use a Servlet Engine, because it's going to make your life much easier (and is valuable knowledge). If you plan just on having a poor socket listening for one low-level network operation -- say, Java RMI --, going with just the JVM /might/ be more economical. -- DF.