This week's book giveaway is in the Performance forum.
We're giving away four copies of The Java Performance Companion and have Charlie Hunt, Monica Beckwith, Poonam Parhar, & Bengt Rutisson on-line!
See this thread for details.
Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Java's network api

 
William H Taylor
Greenhorn
Posts: 18
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Java has a network api where you can put together a simple server using the server socket class. My question is do you just need an active jvm to run it? How do you go about finding a host for something like that? You would not use servlets and tomcat because it is a server already right?
 
Marco Ehrentreich
best scout
Bartender
Posts: 1294
IntelliJ IDE Java Scala
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi William,

there are many ways to build client-server-applications and there are a lot of client-server-applications. As always it depends... You should ask yourself what you want to do with this application. Are there any restrictions regarding the server or client side? Or would you provide the client and the server? What kind of information do you plan to exchange between client and server? Etc.....

Of course you can build a server application with the Java socket API. Tomcat is a Servlet container designed to handle Java based web applications. But in the end it acts as a socket based server too.

Marco
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic