A java servlet is a Java software component that extends the capabilities of a server. A servlet is an object that receives a request and generates a response based on that request. A java servlet processes or a java class in java EE that conforms to the java servlet api, a standard for implementing java classes that respond to requests.
( Java EE includes several specifications that serves different purposes, like generating web pages ( servlet ), reading and writing from a database in a transnational way ( JPA, JTA ( Hibernate is one of implementation of JPA and can be configured for JTA. Jboss server manages the transaction and in the mean time we can disable transnational behavior from hibernate) ), managing distributed queues ( JMS ) )
The servlet API is the foundation of almost all Java Web Technologies. Servlets can respond to HTTP requests, create cookies, and maintain sessions. The servlet api is contained in java package hierarchy, javax.servlet.
To deploy and run a servlet, a web container must be used. A web container ( also known as a servlet container ) is essentially the component of a web server that interacts with the servlets. The web container is responsible for managing the life cycle of servlets, mapping a URL to a particular servlet. Some of the examples of web containers are Apache tomcat, Glassfish from oracle, Jetty from eclipse foundation etc.
Spring MVC, as many other web framework, is designed around the front controller pattern where a central Servlet, the DispatcherServlet, provides a shared algorithm for request processing, while actual work is performed by configurable delegate components.
References :
( Java EE includes several specifications that serves different purposes, like generating web pages ( servlet ), reading and writing from a database in a transnational way ( JPA, JTA ( Hibernate is one of implementation of JPA and can be configured for JTA. Jboss server manages the transaction and in the mean time we can disable transnational behavior from hibernate) ), managing distributed queues ( JMS ) )
The servlet API is the foundation of almost all Java Web Technologies. Servlets can respond to HTTP requests, create cookies, and maintain sessions. The servlet api is contained in java package hierarchy, javax.servlet.
To deploy and run a servlet, a web container must be used. A web container ( also known as a servlet container ) is essentially the component of a web server that interacts with the servlets. The web container is responsible for managing the life cycle of servlets, mapping a URL to a particular servlet. Some of the examples of web containers are Apache tomcat, Glassfish from oracle, Jetty from eclipse foundation etc.
Spring MVC, as many other web framework, is designed around the front controller pattern where a central Servlet, the DispatcherServlet, provides a shared algorithm for request processing, while actual work is performed by configurable delegate components.
References :
Comments
Post a Comment