WA1301 Eclipse Boot Camp for Java Programmers Using MyEclipse and JBoss Training and Courseware Course Outline

1. Introduction to Eclipse IDE and Open Source Servers

  • Objectives
  • The Eclipse Platform
  • Eclipse 3.0 Java IDE
  • Views, Perspective and Editor Areas
  • Basic Operations with Eclipse Views and Perspectives
  • The Java Perspective
  • The Debug Perspective
  • Navigator View
  • Package Explorer
  • Outline View
  • Problems View
  • Tasks View
  • Build and Validation
  • Import and Export Project
  • Templates and Code Completion
  • Searching
  • Setup Compiler Class Path
  • JRE Switching
  • MyEclipse 3.8
  • MyEclipse - Visual HTML Designer
  • MyEclipse JSP Development
  • MyEclipse EJB Support
  • MyEclipse Struts Modeler
  • MyEclipse XML Editor
  • MyEclipse Application Connector
  • Summary
 

2. Creating Java Applications Using Eclipse

  • Objectives
  • Select the Java Perspective
  • Create a Java Project
  • Create a Java Project cont
  • Create a Java Project cont
  • 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
  • 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
  • Deploying a Web Application to JBoss/Tomcat
  • MyEclipse Application Server Connectors
  • Enable/Configure MyEclipse Application Server Connectors
  • Enable/Configure MyEclipse Application Server Connectors cont
  • Enable/Configure MyEclipse Application Server Connectors cont
  • Deploy/Redeploy a Web Application from MyEclipse to App Server
  • Start/Stop App Server
  • Test the Servlet/JSP
  • Debug a Servlet/JSP
  • Remote Server Debug
  • 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
  • Define the Meet-in-the-middle Data Mappings of CMP fields for JBoss
  • Summary
 

5. Team Development

  • Objectives
  • Goals of Team Development
  • Team Development Architecture
  • Workspace
  • Repository
  • Synchronize Workspace with Stream
  • Versioning
  • Version Control Systems
  • Major Tasks for Setting up Team Environment in Eclipse
  • Install CVS NT
  • The CVS Repository Exploring Perspective
  • Connect to Shared Repository
  • Synchronize Workspace with Repository
  • Synchronize Workspace with Repository Commit/Update
  • Version a Project
  • Import Project from Shared Repository
  • Summary
 

6. Using Ant with MyEclipse

  • What is Ant?
  • Ant details
  • build.xml
  • How to run Ant?
  • Using ant from MyEclipse
  • Run an Ant Build Script
  • Ant Related Issues
  • Advanced Task
 

7. Develop Web Services on JBoss with Axis

  • Objectives
  • What are Web Services?
  • Service Oriented Architecture
  • Why Do We Need Web Services?
  • Problems with Conventional Distributed Systems
  • Solution
  • Web Services Benefits
  • Web Services Supporting Architecture Standards
  • The Functions and Information Flow
  • The Role of SOAP
  • What is SOAP Anyway ?
  • WSDL Web Service Description Language
  • Discover the Service from UDDI
  • J2EE vs. Web Services
  • Web Services Programming Model
  • Web Services Programming APIs
  • RPC-based Web Services
  • JAX-RPC Java API for XML-based RPC
  • Architecture of RPC-based Web Services
  • Invoke the Web Service
  • Dynamic Invocation Interface
  • Basic Tasks for Developing Web Services on JBoss
  • Why Need Apache Axis?
  • What is Apache Axis
  • Steps to Deploy Web Services on JBoss using Axis
  • Install Axis Web Application on JBoss
  • Test the Axis Installation
  • Test the Axis Installation cont
  • Test the Axis Installation cont
  • An Example of Axis WSDD
  • Use Axis AdminClient to Deploy a Web Service
  • Use Axis WSDL2Java to Generate SOAP Client Stub and Wraper
  • Example of a Generated SOAP Client Wrapper
  • Example of a Generated SOAP Client Wrapper cont
  • Example of a Generated SOAP Client Stub
  • Example of a Generated SOAP Client Stub cont
  • Example of Using SOAP Wrapper in a SOAP Client
  • Summary
 

8. 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
  • 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
  • Running Tests
  • Eclipse Test Runner Icons
  • Rerun an individual test
  • Failure Trace
  • Debug with JUnit
  • Test Suite Wizard
  • Testing Strategies
  • Testing Strategies
  • Testing Strategies
  • Testing Strategies
  • Specific Techniques
  • Testing simple Java classes
  • Testing with databases
  • Testing with databases
  • Testing with databases
  • Testing with databases
  • Testing web applications
  • Testing web applications
  • Testing web applications
  • Test-Driven Design
  • Test-Driven Design
  • Test-Driven Design
  • Parting Thoughts
  • Summary
 

9. 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
  • Creating a Struts Form Bean
  • Create a Struts Action
  • Create a Struts JSP
  • Summary