ChapterÂ 11.Â Java 2, Enterprise Edition
The specification for the Java 2, Enterprise Edition ( J2EE) defines a platform for developing web-enabled applications that includes Enterprise JavaBeans, Servlets, and Java Server Pages ( JSP). J2EE products are application servers that provide a complete implementation of the EJB, Servlet, and JSP technologies. In addition, the J2EE outlines how these technologies work together to provide a complete solution. To understand what J2EE is, itâs important that we introduce Servlets and JSP and explain the synergy between these technologies and Enterprise JavaBeans.
At risk of spoiling the story, J2EE provides two kinds of âglueâ to make it easier for components to interact. Weâve already seen both types of glue. The JNDI Enterprise Naming Context (ENC) is used to standardize the way components look up resources that they need. Weâve seen the ENC in the context of enterprise beans; in this chapter, weâll look briefly at how servlets, JSPs, and even some clients can use the ENC to find resources. Second, the idea of deployment descriptorsâin particular, the use of XML to define a language for deployment descriptorsâhas been extended to servlets and JSP. Java servlets and server pages can be packaged with deployment descriptors that define their relationship to their environment. Deployment descriptors are also used to define entire assemblies of many components into applications.
The Servlet 2.2 specification defines a ...