- Introduction to Eclipse IDE and Open Source Servers
- Java Apps with Eclipse
- Web Apps with MyEclipse
- EJB with MyEclipse
- Team Development with Eclipse
- ANT with MyEclipse
- Web Services on JBoss with Axis
- JUnit with MyEclipse
- Struts with MyEclipse
JBoss Training Prerequisites
JBoss Training What you will learn
After completing this course, the student should be able to:
- Develop, debug and test Java applications using Eclipse
- Develop and test servlets using MyEclipse
- Develop and test JSPs using MyEclipse
- Develop and test session EJBs using MyEclipse
- Develop and test entity EJBs using MyEclipse
- Assemble J2EE components and applications and perform integration testing
- Use Eclipse to perform team development
- Create Web Services using MyEclipse
- Use JUnit and the built-in JDT JUnit features of MyEclipse
- Build simple struts application using MyEclipse
JBoss Training Practical Work
- Extensive practical exercises take students through all major aspects of the design and development of Java programs.
- Students will be introduced to various wizards and tools available in MyEclipse and Eclipse.
JBoss Training Audience
This course is intended for those who have Java knowledge and are interested in using or transitioning to this new and powerful Java application development environment.
JBoss Training Course Duration
3 Days
JBoss Training Course outline
Chapter 1 - Introduction to Eclipse IDE and Open Source Servers
- 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
- The Tomcat Servlet and JSP Web Container
- The JBoss Application Server
- Other Open Source Plugins
Chapter 2 – Creating Java Applications Using Eclipse
- 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
- Debug Java Code
Chapter 3 – Creating Web Applications Using MyEclipse
- 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
- 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
- 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
Chapter 4 – Creating EJB Applications Using MyEclipse
- 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
Chapter 5 – Team Development
- 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
Chapter 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
Chapter 7 – Develop Web Services on JBoss with Axis
- 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
- 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 Stub
- Example of Using SOAP Wrapper in a SOAP Client
Chapter 8 - Using JUnit with MyEclipse
- 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
- 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
Chapter 9 - Struts Application Development Using MyEclipse
- 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 element in the struts-config.xml
- The element in the struts-config.xml
- The element in the struts-config.xml
- The 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
- Creating a simple Struts application
- The Structure
- Setup Needed
- Directory Structure
- index.jsp
- The index.jsp Page
- struts-config.xml
- MultiplyForm.java
- MultiplyAction.java
- result.jsp
- The result page
- ApplicationResources.properties
- 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
Minimum Hardware Requirements
- 500MHz CPU
- 512MB memory
- 1GB hard disk space
Minimum Software Requirements
- Windows XP, 2000 or Windows NT Workstation V4.0 (with Service Pack 6a)
- Adobe Acrobat Reader V4.0
- Netscape 4.7 or IE 5.0
- WinZip 8.0 or higher
- J2 SDK 1.5(jdk-1_5_0_01-windows-i586-p.exe)
- JBoss 4.0.1(JBoss 4.0.1 jboss-4.0.1.zip)
- Eclipse 3.0.1(Eclipse 3.0.1 eclipse-SDK-3.0.1-win32.zip)
- MyEcipse 3.8(EnterpriseWorkbenchInstaller_030803.exe)
- IBM DB2 V8.1 Enterprise Server Edition