Академический Документы
Профессиональный Документы
Культура Документы
Servlets dont have a main method , they are under the control of another
java application ,Container.
Tomcat is an example of a container.
When web server gets a request for a servlet (not a static html) page it hands
the request not to the servlet but to the container
Life without Container
Networking : Create a socket connection with the server and create a listener for the socket
Threading : Create a thread manager
Security : Implement security
Filtering things like logging
JSP support
Memory management
Life with it
Communications Support : Container knows the protocol b/w itself and web server
e. And if full J2EE sever,you can even declare that youll be accessing
specific EJBs
Advantages of DD
Touching source code
Fine tuning App
Adapt to different resources
Dynamic security
Lets Non-programmers deploy
9. J2EE container
Its a super spec, it includes other specifications
a. Servlets 2.4
b. JSP2.0
c. EJB 2.1
10.Web Container(Servlets and JSP) is for web components and EJB container is
for business components.
11.A fully complaint J2EE container must have a web container and an EJB
container along with other things likeJNDI and JMS implementation
12.Tomcat container does have the ability to act as basic HTTP server.
13.But for HTTP server capability tomcat is not as robust as Apache web server
14.Common J2EE servers : BEA weblogc,JBoss AS,IBM-Websphere