|On this page:|
|Servlets||home - top of the page - email|
- server side, replacement for CGI scripts (serving dynamic web content,
maintaining state information, session tracking, database connectivity
using JDBC, applet-servlet communication). "Third-party Servlet containers
are available for Apache Web Server, iPlanet Web Server (formerly Netscape
Enterprise Server), Microsoft IIS, and others. Servlet containers can also
be integrated with web-enabled application servers, such as BEA WebLogic
Application Server, IBM WebSphere, Netscape Application Server, and others."
• www.webdevelopersjournal.com/articles/intro_to_servlets.html - introduction to servlets
• java.sun.com/products/servlet/ - Java Servlet API home page, the first stop for any servlet developer.
• java.sun.com/products/jsp/syntax.html - short JSP reference (in PDF)
• Servlet Central, an independent on-line magazine dedicated to servlets and server-side Java programming.
• Servlets.com, a site primarily dedicated to promoting Jason Hunter's book, "Java Servlet Programming" (O'Reilly & Associates, 1998), which is an excellent resource and highly recommended for all servlet programmers.
• www.servlets.com/resources/urls/articles.html - good source
• www.javaexchange.com/ - Java Exchange - servlet-based database access (Oracle & Solid).
• Tutorial on Servlets and JavaServer Pages (JSP), by Marty Hall. A comprehensive resource with free source code examples.
• www.javaworld.com/javaworld/jw-12-1999/jw-12-ssj-jspmvc_p.html - Understanding JavaServer Pages Model 2 architecture. Very good article.
• www.javaworld.com/javaworld/jw-03-2000/jw-03-pushlet_p.html- pushlets
|JSP||home - top of the page - email|
JSP or Template engines?
• www.servlets.com/soapbox/problems-jsp.html - "The Problems with JSP" (by Jason Hunter).
• www.servlets.com/soapbox/problems-jsp-reaction.html - follow-up on "The Problems with JSP"
• webmacro.org - WebMacro
• xml.apache.org/cocoon/ - Cocoon
• java.apache.org/turbine/ - Turbine
• freemarker.sourceforge.net/ - freemarker
• www.meangene.com/otembo/ - OTembo - an Open Template-Based Servlet System
• java.apache.org/ecs/ - ECS
• www.enhydra.org - XMLC
• staff.plugged.net.au/dwood/xmlc/index.html - XMLC
• www.xslt.com - XSLT
• http://jakarta.apache.org/struts/ - Struts Framework (open source) - to build web applications with Servlets and JSP
|Servlet Engines||home - top of the page - email|
Which servlet engine to use?
• java.apache.org/jserv/ - JServ from Apache ( installation )
• jakarta.apache.org/tomcat/jakarta-tomcat/src/doc/uguide/tomcat_ug.html -
Q: What is the Difference Between Tomcat and Jserv? Isn't Tomcat==Jserv? -
A: "This is a common misunderstanding.
-- Jserv is a Servlet API 2.0-compliant container that was created to be used with Apache. It doesn't have JSP support.
-- Tomcat is a reference implementation, a complete re-write and is a Servlet API 2.2 and JSP 1.1-compliant container. Tomcat uses some of the code written for Jserv, especially Jserv's Apache server adapter, but this is where the similarities end."
• Apache + jrun ( www.allaire.com/products/jrun/ ) - servlet + JSP support
• www.caucho.com/ - Resin (free)
• www.newatlanta.com/ - ServeltExec (low cost)
Here are interesting comparisons:
• www.caucho.com/articles/benchmark.html - according to these benchmarks, their own product (Resin, free open source JSP/Servlet engine) is faster than mod_perl !!
|Apache - Java Related Projects||home - top of the page - email|
- servlet engine - 100% pure Java servlet engine fully compliant with
the JavaSoft Java Servlet APIs 2.0 specification. Works on any "version
1.1 compliant" Java Virtual Machine and may execute any Java servlet compliant
with version 2.0.
• Cocoon - XML project - Cocoon. The most common use of Cocoon is the automatic creation of HTML through the processing of statically or dynamically generated XML files. Cocoon is also able to perform more sophisticated formatting, such as XSL:FO rendering on PDF, client-depending transformations such as WML formatting for WAP-enabled devices or direct XML serving to XML and XSL aware clients.
• Jakarta - Servlet & JSP - The flagship product, Tomcat, is a reference implementation of the Java Servlet and JSP (Java Server Pages) Specifications which can run standalone as well as integrated into the Apache Web Server.
• xml.apache.org/ - Xerces - XML parsers in Java, C++ (with Perl and COM bindings) (see much more XML stuff at my XML page.
• Xalan - Apache's Xalan provides an XSL
transformation (XSLT) engine -
|EJB, J2EE||home - top of the page - email|
Beans - Java's component architecture.
EJB- Enterprise JavaBeans - a standard for server-side components (specification 1.0 was introduced in March 1998). Currently EJB is part of J2EE (Java 2 Enterprise Edition).
EJB run inside a container (application server) such as IBM WebSphere, BEA WebLogic, and others.
There are 2 types of EJB:
• session beans - function similar to servlets
• entity beans - has persistence (usually via mapping to a database). Thus entity beans are slow.
Using EJB compliant distributed business objects:
• significantly simplifies development
• automatically assures security, resource pooling, persistence, concurrency and transactional integrity.
|Old-fassion 3-tier architecture:||Modern approach:|
|presentation||"green screen" (dumb terminal)||presentation = GUI (Java, browser-based, etc.)|
|business logic||procedural program in COBOL or PL/1||servlets, EJB-compliant distributed business objects|
- Enterprise Javabeans by Richard Monson-Haefel (2nd ed.)
- also his web site www.ejbnow.com
- ftp://ftp.oreilly.com/examples/java/ejb/2nd_edition/ - download examples
• Mastering Enterprise JavaBeans and the Java 2 Platform, Enterprise Edition
• Java 2 Platform, Enterprise Edition (By Shannon, et al)
• Designing Enterprise Applications with the Java 2 Platform, Enterprise Edition (by N.Kassern et al)
• Professional Java Server Programming: with Servlets, JavaServer Pages (JSP), XML, Enterprise JavaBeans (EJB), JNDI, CORBA, Jini and Javaspaces (by Andrew Patzer et al)
• Professional Java 2 Enterprise Edition with BEA WebLogic Server -- Francisco Gomez, Peter Zadrozny; Paperback
EJB is roughly similar to Microsoft's COM / DCOM (Component Object Model/Distributed Component Object Model architecture), but EJBs can be deployed across all major operating systems, not just Windows.
- Enterprise JavaBeans home page
• java.sun.com/products/ejb/tools1.html - a list of EJB application server providers
• www.weblogic.com - BEA Systems' WebLogic
• www.ibm.com/websphere - WebSphere Application Server
• java.sun.com/products/ejb/newspec.html - The Enterprise JavaBeans Specification 1.1
• developer.java.sun.com/developer/onlineTraining/Beans/EJBTutorial/index.html - Enterprise JavaBeans Tutorial: Building Your First Stateless Session Bean