Developing for the J2EE Tomcat Platform

Peter Kitson

ISBN : 0201775824

Order a printed copy of this book from Amazon.


Cover Design - Developing for the J2EE Tomcat Platform
 

For your free electronic copy of this book please verify the numbers below. 

(We need to do this to make sure you're a person and not a malicious script)

Numbers

 




Sample Chapter From Developing for the J2EE Tomcat Platform
     Copyright © MassLight Inc



What is J2EE?

J2EE (Java 2 Enterprise Edition) is a specification for developing enterprise and distributed applications from JavaSoft (Sun Microsystems). J2EE is not one thing; it encompasses a large set of technologies:

  • JavaServer Pages (JSP)
  • Servlets
  • Enterprise JavaBeans (EJB)
  • JDBC
  • Java Naming and Directory Interface (JNDI)
  • support for XML
  • Java Messaging
  • Java Transaction Support
  • JavaMail
  • Java support for CORBA

In this course, we will talk about JSP, servlets, EJB, JDBC, and touch on JNDI.

What can using these technologies accomplish?

J2EE is useful for creating web applications like Yahoo! Mail, a web-based stock trading system such as E*TRADE, or an online auction house like eBay. Anytime there is a need for many people to access a collection of data in a distributed manner, an implementation of the J2EE specification can provide a solution.

Where is J2EE?

Since J2EE is a specification, it isn\'t located anywhere. Instead vendors make their products adhere to the J2EE specification.

Examples of the vendors offering J2EE compliant products are

  • Netscape/AOL iPlanet
  • BEA WebLogic
  • IBM WebSphere
  • The JBoss Group\'s JBoss

In this course, we will concentrate on JBoss, which is a free, open-source J2EE server. The JBoss server itself is written in Java, so it can run on Windows, Linux, Mac OS X, Solaris, or any other platform which fully supports the Java virtual machine.

Java Server Pages

Java Server Pages (JSP) are Sun\'s solution to the generation of dynamic HTML. With JSPs, you can generate HTML on the fly, which is important because

  • the content of the HTML may depend upon user submitted data
  • the information represented by the HTML is dynamic by nature
  • the HTML may be customizable on a per user basis

JSPs are HTML-like pages that can contain a mixture of HTML tags, data, and Java code.