Alexandre Pieroux
Alexandre Pieroux

Reputation: 249

Application server: Tomcat, Glassfish, Jetty

In the context of a project we have to write a client/server application in Java. For this purpose we designed the server and the client application using HTTP requests/responses and a database. As we are fresh to this kind of project I have looked for a http server that could handle the basic tasks (such as http parser, db interaction, making/receiving HTTP response/request..). I found that server like Tomcat, Jetty and glassfish may answer to these questions (Or I did not correctly understood), but I am puzzled by some points:

There is no web page to display, only use HTTP as simple communication protocol that will contain data (iCalendar format) and will perform insert/get/modify/delete operations on the database after some controls.

Any help is welcome!

Upvotes: 1

Views: 952

Answers (1)

erhun
erhun

Reputation: 3649

As i understand you serach something and want some useful links to start, lets try to answer your question:

How these application server work?

  • Basically when they are run it starts to listen a port(it can be change or configurable according to server you select tomcat default 8080 etc.) and when a new request made by clients to this port server hadle it and return the answer according to your code logic.

How can I write my service and then embed it in the application server? (API's, tutorials, good documentation, courses,...)

  • Actually if you didn't need any web page it means you just need an API, but you should learn how to write an servlet in Java Web Projects. So don't check web page technologies just check Servlet Programming, this are some useful links; link1, link2

Which one is best suited for this kind of project?

  • You should be simple as possible, but i can offer Tomcat, large community support (a lot of stackoverflow question already answered)

Is there other simpler solutions?

  • You can search more lightweight servers like Jetty(embedded server)

Am I wrong?

  • No :)

Upvotes: 2

Related Questions