J2EE Development Detail: Audience www.peaksolutions.com/ittraining Java developers, web page designers and other professionals that will be designing, developing and implementing web applications using JavaServer Pages, servlets, Enterprise JavaBeans and implementing them with an Application Server. Duration Abstract Objectives Topics Class Format Prerequisites 5 Days This course will integrate instructor-led discussions and interactive workshops to demonstrate the development and testing of serverside applications using J2EE component model. This course will focus on illustrating the use of the Eclipse Developer product for developing servlets, JavaServer Pages and Enterprise JavaBeans. Each student will learn the best practices solution for developing J2EE applications using Model-View-Controller framework and the role of servlets, JSPs and JavaBean components. Upon conclusion participants will have acquired these skills: Illustrate the J2EE 1.3 component model and role in designing server-side applications Develop, debug and test servlet applications using Servlet v2.3 Develop, debug/test JavaServer Pages using JSP v1.2 Understand how to create custom JSP tag libraries Integrate JavaBeans with servlet/jsp model Understand the role of Web services and its APIs Understand role of JDBC to establish connectivity to relational structures Use of existing Enterprise JavaBeans for application business logic using EJB v2.0 (Entity, Session and Message beans) Understand JMS, JNDI and their uses. Understand the J2EE security model, as well as additional security features. Overview Web Services Component Deployment JDBC Servlets Web Services Exception Handling EJBs and JNDI Debugging Sesions Lecture and Lab Each student should have a basic understanding of the WWW and have been exposed to the Java programming language.
Detail: Topic 1: J2EE Infrastructure Provide each student with the following information: high-level perspective of the J2EE and Eclipse environments, J2EE 1.3 components and services and the deployment components. Topic 2: Component Deployment Review the abilities of the WSAD v5.0 IDE tool focusing on the following: GUI panels, wizards, Navigation, Projects, Perspectives, folder structures, integration with embedded application server, properties, and the J2EE implementation. Topic 3: Servlet Development Review the fundamental differences for developing, deploying and testing servlets. Additionally, covers v2.3 API, servlet folder structure, web.xml file and invocation via HTML FORM and discuss various servlet design strategies (like Struts). J2EE infrastructure Overview Roles o Browsers o Web Servers o Application Servers Web and EJB Containers J2EE Services Stateful vs Stateless Administration Installation and Configuration Environment setup Admin Console features Administrative components capabilities Workbench environment Customize Perspectives o Web o J2EE o Data o XML o Server o Debug Projects o Web o EAR o EJB o Server Navigator View Setting properties and preferences Comparing IDE toolsets J2EE environment overview Servlet wizard Comparing components o Application o Applet o Servlet Servlet processing model o HTTP Messages o Stateless vs Stateful o JVM and JRE Servlet v2.3 API: Generic & HTTP WAR folder structure Lifecycle HTML FORM interaction HTTP Message structure Deploying and testing Servlet design strategies
Topic 4: Exception Handling Illustrate the exception handling processing within the Java language: discuss exception object types, trapping and processing errors and exception object propagation. Exception Object hierarchy Java usage o Try blocks o Catch blocks o Use of finally Throwing custom exceptions Re-throwing exceptions Using throws statement Topic 5: Debugging Detail the capabilities of the debugging tool and the Debugging perspective. Identify the different testing abilities and the differences with earlier versions. Debugging perspective View Application output in the Console Debugging tasks o Set breakpoints o Step over o Step into o Run return o Modifying variable values Inspect variables using Inspector View threads within different Java Processes Using Scrapbook Topic 6: Session Management Discuss the use of the HttpSession object for creating stateful servlets, role of Session ID, memory vs. database versions, caching, lifecycle duration and interaction with JSPs. Stateful servlet model HttpSession object o Lifecycle o Storing data and objects o Role of Session ID Servlet context Forwarding and redirection Cookies Topic 7: Web Services Discuss Service Oriented architecture of the Web Services architecture, the roles of Web Services Descriptive Language (WSDL), Simple Object Access Protocol (SOAP) and XML. Topic 8: JavaBeans Discuss the evolution of JavaBeans in the J2EE architecture, creation and lifecycle issues and role within Servlet/JSP model. ecommerce role Service Oriented Architecture Components o WSDL o SOAP o XML Integration with Java 2 Connectors JavaBean lifecycle Bean Components o Attributes o Methods o Events JSP integration o HttpSession object o usebean parameter o Using JSP property tags o Location
Topic 9: JavaServer Pages Discuss the unique abilities of WSAD for developing JSP documents. Topic will focus on: use of the WSAD Page Designer for creating JSP documents, JSP file locations, JSP v1.2, role of custom tags and TLDs, deployment, invocation methods and debugging strategies. JSP components o HTML o JSP tags o Custom tags MVC integration Servlet/JSP model Invocation: Browser, Servlet, JSP JSP Tags o Directives o Declaratives o Scriptlets o Expressions o Comments Use of JSP Page Designer Development using WSAD Custom tags o Tag libraries o Tag Handlers o TLD files Topic 10: Using JDBC Learn about the role of JDBC for accessing relational data structures. JDBC API JDBC Driver Data Sources & Connection Pools Building JDBC applications Schema Center Topic 11: Role of JNDI JNDI API o Client interface o SPI Contexts & sub-contexts Federated Name spaces javax.naming Package JNDI and JDBC JNDI and EJB integration Topic 12: Enterprise JavaBeans Detail the migration of EJB v1.1 beans to EJB v2.0 in WSAD v5.0. This topic will feature discussions on: EJB 2.0 API, development differences in WSAD, EJB project structure, role of ejb-jar deployment descriptor, new EJB test client and a review of JMS and JNDI API differences. EJB 2.0 types o Entity Beans BMP CMP o Session Beans Stateless Stateful o Message WSAD EJB wizards EJB Project structure ejb-jar.xml deployment descriptor EJB Test Client JNDI usage i EJB Query Language Migrating from EJB 1.1 JMS review Topic 13: Deployment J2EE Packaging
This section will discuss the packaging and deployment issues related to the environment. Reviews the J2EE packaging structures and the role of the Application Assembly Tool for both packaging and migration. o Package types o Deployment Descriptors o META o IBM Bindings Application Assembly Tool o EJB Modules o Web Modules o Resource Adapters o Application Clients o Security Roles Topic 14: Java 2 Connectors Review the components of the Java 2 Connectors in the J2EE architecture and the design strategies for incorporating this infrastructure and migrating components earlier versions. Connector architecture overview Patterns o Composite o Applications o Runtime Application Design guidelines o Web Services o J2EE Connectors o JMS Transactional applications o Commit protocols o Transaction levels o Enterprise integration o Two-Phase commit Security for EIS connections XML support Comparing CCF t 2 Connectors