Java J2EE
Who should attend | Prerequisites | Content | Sample Notes | Next Class | Printer Friendly 
Class Summary
This class provides an introduction to the principles of developing Java Enterprise Edition applications. The Sun ONE Studio is used as the development environment for the class, together with the embedded PointBase Relational Database. Principles learnt in this class are applicable to other application server and database environments.
The materials used in this class have been newly revised for 2006. Custom versions of this class that use different environments can be prepared on demand - please contact us for further information.
To run this class on your own equipment, please note that a minimum of Pentium III 500-MHz system with 512 MB of memory and 700 MB of disk space is required. A Pentium III 1-GHz system with 768 MB of memory is recommended. Installation software can be downloaded here - please e-mail for password information.
Who Should Attend
Developers and web application developers planning to utilise the Sun J2EE architecture for creating comprehensive multi-tiered software in Java.
Prerequisites
Some Java programming experience is advised. Our one day Java Management Overview class is an excellent introduction to the principles of Java and Object Orientation, if you have no prior Java experience. Alternatively, our Java Programming class (5 days) provides a comprehensive grounding in software development using Java.
Two optional lessons review XHTML and SQL if delegates have little or no experience in these associated technologies.
Content
- J2EE Overview: Objectives; J2EE Concepts; J2EE Services; J2EE Services; J2EE Application Tiers; Client tier; Middle Tiers; Application Server; EIS Tier; PointBase Relational Database; Sun Studio; J2EE Applications; Web Tier – WebApps & WARs; Business Tier – EJBs & JARs; JNDI; Practice.
- JSP and Servlet Overview: Objectives; Overview; Benefits of JSPs & Servlets; JSP Architecture; JSP Example; Generated Servlet Code; Generated Servlet Code (continued); Exercise Create; deploy and test a JSP; What is a servlet?; How a servlet works; Servlet Example; Exercise 3b Create, deploy and test a servlet; Summary.
- Session EJBs: Objectives; EJB Overview & Benefits; Enterprise Bean Usage; EJB Restrictions; EJB Types; Client View; Processing Flow; Session Beans; Entity Beans; Message Driven Beans; EJB Model; Classes and Interfaces; Remote and Local Interfaces; Example Session Bean; Deployment Descriptors; ejb-jar.xml; Stateless session bean; Stateful session bean; Client Developer Tasks; Thick Client Application Example; Test Servlet; Test JSP; Stateful EJB Example; Stateful EJB Business Class; Stateful Remote Interface; Stateful Home Interface; Stateful Deployment Descriptor; Stateful EJB Client; Practice Create and test a stateful EJB; Summary.
- Bean Managed Entity EJBs; Objectives; Entity EJB Overview; Entity bean lifecycle; Bean v. Container Management; Pointbase Database; Course Database Structure; Entity Bean Classes; BMP Implementation Class; Properties and Accessor Methods; Context Management Methods; Container Management Methods; Lifecycle Methods; Finder Methods; Private Database Access Methods; Business Methods; Adding JNDI Information; Practice Create an Entity EJB; Summary.
- Container Managed Entity EJBs; Objectives; Container Managed EJB Overview; BMP and CMP Similarities / Differences; Creating a CMP Bean - Overview; Database Schema; Creating Skeleton CMP Bean; CMP Bean Create Method; CMP Bean Business Methods; CMP Bean Finder Methods; EJBQL Overview; Finder Method Example findAll(); Finder Method Example findByType(); CMP Implementation Class; Business Methods; Testing CMP Bean; Practice Create CMP Customer Entity Bean; Summary.
- Servlets: Objectives; Java Servlet; HTTP Servlet; Servlet Features; Servlet lifecycle; Servlet internals; HttpServletRequest; HttpServletResponse; doGet(); doGet() Example; doPost(); doPost() Example; HTTP Parameters; Retrieving all parameters; Servlets in packages; Servlet utilities; Other servlet methods; Initialising a servlet web.xml; Initialising a servlet example; Single threaded servlets; Checking and filtering user input; Filtering input example; HTTP request headers; Http request headers example; HTTP request headers output; Cookies; Creating a cookie; Cookie Example; Standard servlet variables; Practice 7 Database Access Servlet; Summary.
- Developing and Deploying JSPs: Objectives; What is a JSP?; JSP Example with Expression; JSP Example Generated Servlet; Practice Create a Simple JSP; JSP Elements; Comments; JSP Expression; JSP Expression Example; Generated HTML; JSP Expression results; Predefined variables; JSP Scriptlet; JSP Scriptlet Examples; JSP Declaration; JSP Declaration example; JSP Directives; Page Directive; Page Directive Examples; Include directive / action; Include examples; Include results; Forwarding JSP Requests; Error handling; Error page example; Error responses; Practice Login Form; Summary.
- Java Beans: Objectives; What is a JavaBean?; JavaBean Example; Bean internals; Integrating Beans and JSP's; Executing a bean; Other Bean Lifecycles; Application bean example; Application bean JSP; Application bean display; Practice - Create and Test a Java Bean; Summary.
- JSP Tag Libraries: Objectives; Tag Library Overview; Java Standard Tag Libraries; Expression Language; Using Expression Language; JSTL Core Library; Core Library Example; Core Library Tags; JSTL Internationalisation / Formatting; JSTL XML Transformation; JSTL SQL Tag Library Connection; JSTL SQL Tag Library Retrieval; JSTL SQL Tag Library Result; Custom Tags; Example Custom Tag Class; Custom Tag Library Descriptor; Using Custom Tags; Tag Library Structure; Creating a Tag Library; Practice Create Custom Tag; Summary.
- Message Beans: Objectives; Remote method invocation; Java Message Service Summary; RMI Architecture; RMI Servers; RMI Clients; Point-to-point MDB's; JMS Components; JMS Server Configuration; Message Bean Lifecycle; Message Bean Clients; Practice - Create and Test an MDB; Summary.
- Struts Introduction: Objectives; What is Struts?; Struts Objects; Initialising an application; Initial JSP Form; Action Forms; ActionClasses; struts-config.xml; Struts techniques; Practicfe - Create and test a simple Struts application; Summary.
- HTML Review (optional): Objectives; XHTML Overview; XHTML Tags and Formatting; Creating & testing a web page; XHTML Tags; Head tag attributes; Body tag attributes; Standalone tags; Heading tags; Cascading style sheets; Linked style sheet; Embedded style sheet; Link and Image Tags; Tables and Formatting; HTML Forms; HTML Form Example; HTML Form Output; Useful HTML References; Practice - Write HTML Pages; Summary.
- SQL Review (optional): Objectives; What is a relational database?; Example relational table; Retrieval Examples; The SELECT statement; Choosing columns; Choosing rows; Joining tables; Updating a database; Course Database; Summary.
Sample notes
A comprehensive 350+ page manual is provided to each participant. This manual includes copies of all presentation slides used in the delivery of this class.
Suggested next class
Our suggested next step for serious Java J2EE developers is to consider a Struts class. Please contact us for further details of this class.
|