Hello everyone,
From several days I'm trying to understand the real differences between
Tomcat and Glassfish, I state that up to now I have always used php and
Java + Tomcat and I think that this limits the way I see the web app, but could change with the understanding of Application server working.
From what I read GlassFish is an application server, and not a simple
servlet container.
Using Tomcat I structured my app using the MVC
pattern, and in a single WAR file I will put the client side code (such as html,js,css) and the business code (such as Java classes).
The app is divided in 2:
1. The former contain the engine that generates the html pages which client can request, and the APIs used like a bridge between the client side interface and business code into server.
2. While the latter is the business code of application.
The APIs are developed extending the HttpServlet class, and works as:
For developing a real enterprise application this architecture is well formed?
If the answer is yes, then what is the real difference between application server and servlet container (EE) considering the fact that you can import all EE libraries into the application and can be run on tomcat in the same way of Glassfish or other application server.
Why an application server is better than servlet container?
Thank you all, I hope that I been enough clear, thanks again for your time bye.