WA1636 Eclipse Boot Camp for Java Programmers Using MyEclipse and WebSphere Training and Courseware Course Outline

1. Introduction to MyEclipse

  • Objectives
  • Intro to MyEclipse
  • Eclipse Platform
  • Eclipse Workspace
  • Perspectives, Views & Editors
  • Basic Operations with Eclipse Views and Perspectives
  • The Java Perspective
  • The Debug Perspective
  • Navigator View
  • Package Explorer
  • Outline View
  • Task and Problems View
  • Build and Validation
  • Code Completion, Templates and Snippets
  • Searching
  • Configure Compiler Class Path
  • JRE Switching
  • MyEclipse Additions to Eclipse
  • MyEclipse XML Editor
  • MyEclipse - Visual HTML Designer
  • MyEclipse JSP Development
  • MyEclipse EJB Support
  • MyEclipse - JPA
  • MyEclipse Struts Modeler
  • MyEclipse - AJAX
  • MyEclipse - Spring
  • MyEclipse - Web Services
  • MyEclipse Application Connector
  • Summary
 

2. Creating Java Applications Using Eclipse

  • Objectives
  • Select the Java Perspective
  • Create a Java Project
  • Set up Java Project Properties
  • Add Pre-defined Java Classpath Variables
  • Major Tasks for Java Projects
  • Create a New Package
  • Create a Java Class
  • Add Attributes and Getters and Setters for JavaBeans
  • Create an Interface
  • Eclipse Java Editor
  • Code Style
  • Search
  • Import Resources
  • Steps for Testing Code
  • Build Project
  • Debug Java Code
  • Summary
 

3. Creating Web Applications Using MyEclipse

  • Objectives
  • Typical Web Applications in MVC
  • Java Servlet
  • J2EE and Servlet
  • Servlet Responsibilities
  • The Servlet Class
  • An Example Hello World
  • JavaBean
  • A Simple JavaBean Example
  • JavaServer Pages
  • How JSP Works
  • A Simple Example Hello.jsp
  • Compiled JSP Servlet Code
  • Compiled JSP Servlet Code
  • Using JavaBeans with JSP
  • jsp:useBean Syntax
  • jsp:useBean Examples
  • Accessing Bean Properties
  • A JSP file using useBean tag
  • Web Project Architecture
  • Web Project in MyEclipse
  • Web Modules and WAR
  • Major Tasks for Developing Web Projects with MyEclipse
  • Select the MyEclipse Perspective
  • Create a Web Project
  • Set up Web Project Properties
  • UPDATE - Web Project Folders and File
  • Create a Servlet
  • Code Servlet Methods
  • The Web Deployment Descriptor
  • Creating a JSP with MyEclipse
  • Editing a JSP with MyEclipse
  • MyEclipse Application Server Connectors
  • Enable/Configure MyEclipse Application Server Connectors
  • WebSphere v6.x Console Logging
  • Deploy an Application from MyEclipse to App Server
  • Start/Stop App Server
  • Test the Servlet/JSP
  • Debug a Servlet/JSP
  • Summary
 

4. Creating EJB Applications Using MyEclipse

  • Objectives
  • Typical J2EE Applications in MVC
  • What are EJBs?
  • Needs for EJB
  • Main Characteristics of EJBs
  • Enterprise Java Beans
  • Message-Driven Beans are Different
  • Session Beans
  • Entity Beans
  • EJB Classes and Interfaces
  • Basic Components of Entity and Session Beans
  • EJB Home Interface
  • An EJB Home Interface Example
  • EJBHome Object
  • EJB Remote Interface
  • Remote Interface Example
  • EJB Local Home Interface
  • EJB Local Interface
  • Remote EJB Objects
  • Local EJB Objects
  • EJB Implementation Class
  • EJB Container - Relationships
  • EJB Container Relationships
  • How do (remote) EJBs Work
  • Remote v. Local EJBs
  • Major Components of Deployed EJBs
  • EJB Project Architecture
  • EJB Modules
  • EJB Project in MyEclipse
  • MyEclipse Support for EJB Development
  • Major Tasks for Developing EJB Projects with MyEclipse
  • Create an Enterprise Project with an EJB Module
  • Developing a Session Bean
  • Create a Session Bean Class
  • Define the Bean Methods
  • Specify JNDI Name and Interfaces Using XDoclet Tags
  • Run XDoclet Task
  • Developing an Entity Bean
  • Create an Entity Bean Class
  • Specify the CMP Fields and Primary Key Field
  • Specify the Finder Methods
  • Summary
 

5. Team Development

  • Objectives
  • Goals of Team Development
  • Team Development Architecture
  • Eclipse Workspace
  • Repository
  • Synchronize Workspace with Stream
  • Versioning
  • Version Control Systems
  • Major Tasks for Setting up Team Environment in Eclipse
  • Perforce Concepts
  • Installing P4WSAD
  • Creating a Perforce Project
  • Perforce Perspective
  • Viewing Differences
  • Submitting Changes
  • Summary
 

6. Using Ant with MyEclipse

  • What is Ant?
  • Ant Details
  • Ant Definitions
  • Sample build.xml
  • How to Run Ant?
  • Using Ant from MyEclipse
  • Run an Ant Build Script
  • Ant Related Issues
  • Advanced Task
 

7. Using JUnit with MyEclipse

  • Objectives
  • What is JUnit?
  • Who uses JUnit?
  • Why JUnit?
  • The xUnit Philosophy
  • A JUnit Test
  • Running the Tests
  • Swing-based Test Runner
  • Text-based Test Runner
  • JUnit Basics
  • assertTrue
  • assertEquals
  • assertSame
  • assertNull
  • The Failure Message
  • The Test Class
  • The Test Method
  • The Test Suite
  • JUnit Design
  • JUnit with Ant
  • JUnit with Eclipse
  • Create a Test Case
  • Test Case "Stubs"
  • Running Tests
  • Eclipse Test Runner Icons
  • Rerun an Individual Test
  • Failure Trace
  • Debug with JUnit
  • Test Suite Wizard
  • Testing Strategies
  • Specific Techniques
  • Testing simple Java classes
  • Testing with Databases
  • Testing Web Applications
  • Test-Driven Design
  • Parting Thoughts
  • Summary
 

8. Struts Application Development Using MyEclipse

  • Objectives
  • Review: MVC Model
  • Review: Request, Session and Application
  • What is Struts?
  • Struts Flow
  • Components in Struts
  • The Model
  • The View
  • The Controller
  • Struts Flow
  • struts-config.xml
  • struts-config.xml Content
  • The <data-sources> element in the struts-config.xml
  • The <form-beans> element in the struts-config.xml
  • The <global-forwards> element in the struts-config.xml
  • The <action-mappings> element in the struts-config.xml
  • Sample struts-config.xml
  • The Role of web.xml for the Application
  • Configuring Struts in the web.xml
  • web.xml Content
  • Steps to Configuring Struts in the web.xml
  • Step 1. Configuring the Action Servlet Instance in the web.xml
  • Action Servlet Config Example
  • Step 2. Configuring the Action Servlet Mapping in web.xml
  • Prefix Mapping Example
  • Extension Mapping Example
  • Step 3. Configuring the Struts Tag Libraries in the web.xml
  • Sample web.xml
  • Summary
  • Objectives
  • The application
  • The Structure
  • Setup Needed
  • Directory Structure
  • index.jsp
  • index.jsp - continued
  • The index.jsp Page
  • struts-config.xml
  • MultiplyForm.java
  • MultiplyForm.java - continued
  • MultiplyAction.java
  • MultiplyAction.java - continued
  • result.jsp
  • The result page
  • ApplicationResources.properties
  • Summary
  • Objectives
  • Directory Structure of a Struts Application
  • Directory Structure of a Struts Application an Example
  • MyEclipse Struts Support
  • Create a Struts Web Application project
  • Example of the Flow Structure of a Struts Application
  • Define Struts Flow Structure
  • Struts Configuration Outline
  • Creating a Struts Form Bean
  • Create a Struts Action
  • Create a Struts JSP
  • Summary
 

Appendix A. Administration Console and Application Deployment

  • Objectives
  • Single Server Admin Structure
  • Administration Clients
  • Logging In
  • Console Intro
  • Console Overview
  • Navigation Tree
  • Workspace Area
  • Help Area
  • Save Configuration
  • Save Conflicts
  • Common Configuration
  • Scope
  • Application Installation
  • Installation Steps
  • Finishing Up
  • Start Application
  • Applications on File System
  • Admin Console & Application Deployment Questions
  • Admin Console & Application Deployment Answers
  • Reference