Developing J2EE Applications Using WebSphere / WSAD 5.1
Revision: TE1103_20060318
(8.01 KB) View, Download, or Print Catalog as a PDF.
Course Length:
5 Days
Course Description:
This course is an introduction to writing J2EE (Java 2 Enterprise Edition) applications using IBM's WebSphere Application Server. An overview of J2EE technology is provided, followed by hands-on experience using JNDI and JDBC and writing Servlets, JavaServer Pages, and Enterprise JavaBeans. Start-up, shutdown, and basic configuration of the WebSphere Server is covered, including setup for authentication and authorization of users.
Who Should Attend:
Experienced Java programmers and software engineers preparing to write J2EE applications using IBM's WebSphere Application Server will benefit.
Benefits of Attendance:
Upon completion of this course, students will be able to:
- Describe characteristics of enterprise applications.
- Assemble and deploy a J2EE-compliant application.
- Start and shutdown the WebSphere Server.
- Configure WebSphere using the Administrative Console.
- Setup the WebSphere development environment.
- Write and deploy servlets on the WebSphere Server.
- Manage HTTP sessions in servlets.
- Write JavaServer Pages (JSP).
- Configure WebSphere to run JSPs.
- Use JNDI to locate and access directory objects.
- Use classes and methods in the javax.naming package.
- Create database connections using JDBC drivers.
- Setup WebSphere JDBC properties.
- Create and use connection pools.
- Create and use DataSource objects.
- Describe the different kinds of Enterprise Java Beans.
- Use Bean-managed and Container-managed persistence.
- Understand and write XML-based deployment descriptors.
- Configure and deploy EJBs on the WebSphere Server.
- Handle database transactions in EJBs.
- Define security roles.
- Map EJB method permissions to roles.
Prerequisites:
Students should be comfortable with Java programming and object-oriented concepts. A minimum of six months coding experience is suggested. In addition, students should have prior experience using RMI, JDBC, and Java Servlets.
Course Outline:
- Chapter 1: Overview Of J2EE
- Java Platforms
- Characteristics of "Enterprise" Computing
- J2EE Technologies
- Multi-Tier Architectures and Their Advantages
- Container-Based Approach
- J2EE Application Models
- HTTP Services Applications Component
- N-Tiered Application Model
- Chapter 2: Introduction To WebSphereâ„¢ Studio Application Developer
- What is WebSphere?
- What is WSAD?
- Creating a J2EE Project in WSAD
- Configuring the WebSphere Test Environment
- Starting and Stopping WebSphere
- Setting the Java Runtime Environment (JRE)
- Chapter 3: Servlets
- J2EE Web Applications
- A Simple Servlet
- Developing Servlets with WSAD
- Configuring Servlets
- Setting Servlet URL's in WSAD
- WebSphere Deployment Descriptors
- Servlet Initialization Parameters
- Setting Initialization Parameters in WSAD
- Dynamic Reloading of Servlets
- Servlets and Threads
- The Single-Thread Model
- Cookies
- Sessions and Session IDs
- Session Management
- Invalidating Sessions
- Chapter 4: JavaServer Pages
- A Simple JSP
- Developing JavaServer Pages in WSAD
- Configuring JavaServer Pages
- JSP Syntax
- Running JavaServer Pages
- JSP Directives and Actions
- JavaServer Pages and JavaBeans
- Chapter 5: Java Naming And Directory Interface
- Benefits of JNDI
- Naming and Directory Services
- Using JNDI
- Context Operations
- Running the IBM Universal Test Client
- Chapter 6: WebSphere JDBC
- A Simple JDBC Program
- JDBC Driver Types
- Connection Pools and Datasources
- Configuring JDBC in WSAD
- Data Source Settings
- Chapter 7: Enterprise JavaBeans
- EJB Component Model
- Parties Involved in EJB Deployment
- EJB Server and EJB Container
- Types of Enterprise Beans
- EJB Wrapper Interfaces
- Deployment Descriptors
- Context and Environment Objects
- Summary of EJB Environment
- The Remote Interface
- The Home Interface
- The Enterprise Bean Class
- Understanding the Client Code
- Creating an EJB Project in WSAD
- Adding an Existing EJB to the Project
- The ejb-jar.xml File
- The ibm-ejb-jar-bnd.xmi File
- Testing With the IBM Universal Client
- Creating an EJB Client Project in WSAD
- Chapter 8: Session Beans
- Session Bean Lifetime, Interface, and Lifecycles
- Accessing Environment Entries
- Deployment Settings for the TaxBean
- Deploying and Testing the Tax Bean in WSAD
- Testing the Tax Bean with an Application Client
- Exceptions Thrown by the CartBean
- Deploying and Testing the Cart Bean
- Chapter 9: Adding A Secure Web Component
- J2EE Application Components
- HTML Form for Survey Application
- HTML Code for Survey Form
- Servlet Code for the Survey Application
- Enterprise Bean for the Survey Application
- Deploying and Running the Survey Application
- Security for J2EE Web Applications
- Configuring Web Application Security in WSAD
- Enabling Security for the WebSphere Server
- Disabling WebSphere Security
- Chapter 10: BMP Entity Beans
- Entity Bean Interface
- Lifecycle of an Entity Bean
- Deploying Entity Beans
- Deployment Settings for Customer Bean
- Deploying and Testing a BMP Entity Bean
- Chapter 11: CMP Entity Beans
- Container-Managed Persistence
- Primary Key Class
- CMP Entity Bean Methods
- Deployment Settings for Product Bean
- Implementing Custom Finders
- Deploying and Testing a CMP Entity Bean
- Mapping Entity Beans to Database Tables
- Creating a New CMP Entity Bean
- Chapter 12: Transactions
- Container-Managed Transactions
- Transaction Attributes
- Specifying Transaction Attributes in WSAD
- System vs. Application Exceptions
- Rolling Back a Container-Managed Transaction
- Bean-Managed Transactions
- Deployment Settings for ItemOrderer Bean
- Running the Item Orderer Application
- Chapter 13: Java Message Service
- JMS and the J2EE Platform
- Basic JMS Concepts
- The JMS Programming Model
- Configuring JMS in WSAD
- Reliable Message Delivery
- Chapter 14: Message-driven Beans
- Deploying Message-Driven Beans in WSAD
- Creating a New Message-Driven Bean
- Appendix A: Web Resources
- Appendix B: Best Practices For J2EE Applications
- Appendix C: Reference Sheets
- Appendix D: Custom JSP Tags
- Appendix E: HTML Reference



