Consulting Training Blog Careers About Us Contact Us

Complete EJB using RAD Training

Course ID: WAS1557
Duration: 5 Days

Upcoming Classes

Sorry, nothing scheduled right now. Click the Get Notified button below to be alerted when a class is scheduled.

Get Notified

On Site/Private

Can't find a class that fits right for you? Contact us to inquire about scheduling your own private class

Contact Us

Description

This course is an advanced introduction to the Enterprise Java Beans (EJB) technology. It starts by introducing the concepts and ideal for someone who has never programmed using EJB. The course rapidly picks up and ends with advanced concepts that students can use in real life to complete large-scale EJB based projects. The development and labs will be based on IBM Rational Application Developer v7.0, emphasizing the new features of the EJB 2.1 specification.
 

 

Bring This Course To You

For groups of 5 or more, let Intertech bring this course to your location. Customized versions tailored towards your objectives are also available.

Learn More

Learning Objectives

  • Understand the need for EJB
  • Understand the EJB 2.1 specification at an expert level
  • Understand how to develop, test, and deploy EJBs with RAD
  • Gain knowledge of J2EE Design Patterns and Best Practices
  • Learn the industry secrets in EJB scalability¬†

Prerequisites

The student is expected to understand the core Java libraries; be familiar with web application programming, including servlets and JSPs; have some experience or understanding of using IBM Rational Application Developer. This course includes a review of RAD Basics, but assumes some knowledge of RAD.

Course Outline

Introduction to Rational Application Developer (RAD) v7.0
  • Objectives
  • The RAD 7 Product
  • Eclipse Platform
  • Rational Web Developer
  • Rational Application Developer
  • Key Features in RAD v7.0
  • Views, Perspective, and Editor Areas
  • Basic Operations with RAD Views and Perspectives
  • The Java Perspective
  • The Debug Perspective
  • Navigator View
  • Package Explorer
  • Outline View
  • Task and Problems View
  • Build and Validation
  • Import and Export Project
  • Code Completion, Templates and Snippets
  • Searching
  • Setup Compiler Class Path
  • JRE Switching
  • Refactoring
  • Changing Class Name
  • Changing Method Name
  • Changing Variable Name
  • Moving a Class to a Different Package
  • Extracting Code to a Method
  • Pull Up and Push Down Methods
  • Migrating Workspace from RAD v6
  • Project Interchange Feature
  • Migrating J2EE Applications
  • J2EE Migration Wizard
J2EE Overview
  • Why Do We Need J2EE?
  • J2EE Components
  • J2EE Technologies
  • Useful J2SE Technologies
  • Application Artifacts
  • J2EE Architecture
  • J2EE 1.4 Version Levels
  • J2EE Software Packaging
  • Deployment Descriptor
  • Enterprise Archive (EAR)
  • Web Modules and WAR
  • EJB Modules
  • Building Module Dependency
  • Objectives
  • Project Explorer
  • Servers View
  • The J2EE Perspective
  • The Web Perspective
  • Create an Enterprise Application
  • Setup Utility JAR
  • Create an EJB Project
  • Create a Web Project
  • Setup Dependent JAR Files
  • Create Server Instance and Server Configuration
  • Configure Server Instance
  • Add an Enterprise Application Project to the Test Server
  • Start and Stop the Server
  • Test a Servlet
  • Debug a servlet
  • Test a JSP
  • Debug a JSP
Enterprise JavaBean (EJB) Overview
  • Objectives
  • Needs for EJB
  • Distributed Computing
  • Distributed Transaction
  • Distributed Security
  • What are EJBs?
  • Main Characteristics of EJBs
  • EJB Remote Method Call
  • EJB Architecture Components
  • EJB Client
  • EJB JAR File
  • EJB Server
  • EJB Container
  • EJB Container - Persistence
  • EJB Container - Transaction
  • Enterprise Java Beans
  • Session Beans
  • Entity Beans
  • EJB Classes and Interfaces
  • Basic Components of Entity and Session Beans
  • EJB Home Interface
  • EJBHome Object
  • EJB Remote Interface
  • EJB Local Home Interface
  • EJB Local Interface
  • Remote EJB Objects
  • Local EJB Objects
  • EJB Implementation Class
  • Remote v. Local EJBs
  • EJB Application Development
  • Deploying Enterprise Beans
  • Major Components of Deployed EJBs
Session Bean
  • Objectives
  • Session Beans
  • Stateless Session Bean
  • Stateful Session Bean
  • Components of Session Beans
  • Home Interfaces
  • Remote interface
  • Local interface
  • Service Endpoint Interface (SEI)
  • The Session Bean Class
  • ejbCreate() Method
  • Business Methods
  • Registering Artifacts in ejb-jar.xml
  • Session Context
  • EJB Context
  • Session Bean Lifecycle
  • Lifecycle - Stateless
  • Lifecycle - Stateful
  • Concurrency Issues
  • Invoking Session Beans from Client Application
  • Looking Up a Home Object
  • EJB Reference
  • Create an EJB Object
  • Calling Business Methods
  • IBM RAD for EJB Development
  • Developing a Session Bean using RAD
  • EJB Project in RAD
  • Create an EJB Project
  • Examine the EJB Project
  • Create a Session Bean
  • Code Methods
  • Promote Methods to Interfaces
  • Deploying EJBs
  • EJB Deployment Descriptor
  • Generating Deployed Code
  • Run on Server
  • JNDI Explorer
  • Test the Home Interface
  • Test the Component Interface
  • EJB JAR File Structure
  • EJB Client JAR File Structure
EJB Timer Service
  • Container Managed Timer Service
  • EJB Timer Service
  • Interaction between Timer Service and EJB
  • Timer Service API
  • The TimerService Interface
  • Creating a Timer
  • Getting All Timers
  • The TimedObject Interface
  • The Timer Interface
  • Timer and Transaction
  • Limitations of EJB Timer Service
Entity Bean
  • Objectives
  • Entity Beans
  • Persistence
  • Entity Bean Components
  • Container
  • Primary Key Class
  • (Remote) Home Interface
  • Local Home Interface
  • Remote Interface
  • Local Interface
  • Entity Bean Class
  • Entity Instance
  • Entity Object Lifecycle
  • Bean Instance Lifecycle
  • Bean Managed Persistence
  • Container Managed Persistence
  • Writing BMP Bean
  • Writing a CMP Bean
  • Indicating Persistent Fields
  • Writing a CMP Bean
  • Deployment Descriptor Settings
  • Writing finder methods
  • EJB Query Language
  • EJBQL: SELECT clause
  • EJBQL: FROM clause
  • EJBQL: WHERE clause
  • EJBQL: Watch out!
  • Using EJBQL in a CMP bean
  • Business Methods
  • EntityContext
  • Writing CMP Beans
  • Defining and Mapping CMP Fields
  • Developing Entity Beans in RAD
  • Adding a CMP Entity EJB
  • EJB Deployment Descriptor
  • Add an EJBQL Query
  • Create a Physical Data Model
  • Creating a Database Mapping
  • Choosing a Backend
  • Choosing a Mapping Type
  • Specifying the Mapping
  • EJB 2.0 Relationships
  • WebSphere Extensions
EJB Inheritance
  • The Need For EJB Inheritance
  • EJB Inheritance
  • Characteristics of a Child EJB
  • Table Mappings
  • Single Table Mapping
  • Root/Leaf Table Mapping
  • Guidelines and Limitations
  • ibm-ejb-jar-ext.xmi
  • Creating EJB Inheritance
  • Mapping To RDB: Parent
  • Mapping To RDB: Child
Message-Driven Beans
  • Objectives
  • The Trouble with RMI/IIOP
  • Messaging to the Rescue
  • Messaging Features
  • Message-Oriented Middleware
  • Messaging Domains
  • Publish/Subscribe
  • Point-to-Point
  • Java Message Service
  • JMS Programming: Overview
  • The JMS Interfaces
  • Integrating JMS and EJB
  • Message-Driven Beans Are Different From Other EJBs
  • Message-Driven Beans Cannot Talk to Their Clients
  • Message-Driven Beans are Stateless
  • Durable Subscription
  • Message-Driven Bean Interfaces
  • javax.ejb.MessageDrivenBean
  • javax.jms.MessageListener
  • javax.jms.Message
  • Lifecycle
  • Class MessageCounter
  • Working With Messages
  • Processing the Message
  • Deployment Descriptor Entry
  • Binding the Queue or Topic
  • Transactions
  • Security
  • Load Balancing
  • Clustering and Topics
  • Clustering and Queues
  • A Few Tips
  • Poison Messages
  • How the Programmer Can Avoid Poison Messages
  • How the System Administrator Can Avoid Poison Messages
  • Building a Response
  • Potential Problems
  • A Simple Alternative
  • Type Checking and Messages
  • Testing Message-Driven Beans
EJB Transaction
  • Transaction Management
  • Object Transaction
  • EJB Transaction Basics
  • Transaction Propagation
  • Client Managed Transaction
  • Bean Managed Transaction
  • Container Managed Transaction
  • Transaction Outcome
  • Vetoing a Transaction
  • Transaction Isolation
  • Isolation Level
EJB Exception
  • Objectives
  • Use of Exception
  • Exception Types
  • System Exception
  • Application Exception
  • Bean Class
  • Container
  • Client
  • Standard Exceptions
  • Local EJBs
J2EE Security
  • Security Functionality
  • What Can You Secure in J2EE?
  • Challenge Mechanism
  • Basic Challenge
  • Client Certificates
  • Form-based Authentication
  • User Registry
  • J2EE Authorization Model
  • Protecting Web Resources
  • Protecting EJB Methods
  • EJB Delegation Policies
  • Delegation Scenario
  • Defining Roles at Application Level
  • Goals of the EJB Security Specification
  • Setting Method Permission
  • Defining Roles
  • Specify Accessible Methods for a Role
  • Disable Security Check
  • Excludes List
  • Security Identity (Delegation Policy)
  • Programmatic EJB Security
  • Role Reference
  • Security Configuration
  • User Registry
  • User Registry Configuration
  • Configure the LDAP User Registry
  • Challenge Mechanism
  • Authorization
  • J2EE Roles
  • Sample Role Mapping
  • Mapping Roles to Users/Groups
  • Look Up Users/Groups
  • Special Roles
  • Defining Roles
  • Resource Mappings Web Module
  • Resource Mappings EJB Module
  • "Unchecked" Method Permissions
  • Unprotected Methods
  • Run-As Delegation
  • Configuring Run-As Delegation
Business and Integration Tier Patterns
  • Objectives
  • Business Delegate Pattern
  • Data Transfer Object Pattern
  • DTO Example (Output)
  • DTO Example (Input)
  • Role of DTO in MVC
  • Access Beans
  • Types of Access Beans
  • Data Class Access Bean
  • Data Class Programming Model
  • Access Bean Constructor
  • Generating Access Beans
  • Generating a Data Class
  • Generating an EJB Factory
  • Using EJB Factory and Data Class
  • Deleting the Access Bean
  • Value Object Pattern
  • Multiple Value Objects
  • Best Practice derive EJB from the Value Object
  • Composite Entity Pattern
  • Class Diagram
  • How the client interacts
  • Value Object Assembler
  • Value List Handler
  • How does it work?
  • Design Considerations
  • Service Locator
  • Data Access Object (DAO)
  • DAO Implementation Guidelines
  • Service Activator
  • MDB- Integrating JMS and EJB
  • Message-Driven Beans Are Different From Other EJBs
  • Message-Driven Beans are Stateless
  • Message-Driven Bean Interfaces
  • Class MessageCounter
  • Processing the Message
  • Deployment Descriptor Entry
Other EJB Patterns
  • Objectives
  • Session Fa ade
  • Session Fa ade Pattern
  • Miscellaneous Details
  • Message Fa ade Pattern
  • Message Fa ade
  • Message fa ade pattern shortcomings
  • Version Number pattern
  • Sequence Blocks
  • Stored Procedures for Autogenerated Keys
  • Fast Lane Pattern
J2EE Application Deployment
  • Objectives
  • Generate Deployed Code
  • Export EAR
  • Separate Client Side Code
  • Export EJB Client JAR
  • Export Utility JAR
  • J2EE Deployment
  • Administrative Console
  • Environment Variables
  • Security
  • Resources
  • Creating JDBC Provider
  • Creating Data Source
  • WebSphere MQ JMS Configuration
  • WebSphere MQ JMS Provider
  • Connection Factory
  • Destination
  • Listener Port
  • Relationship Between Messaging Components
  • Installing Applications
  • Server Options
  • Starting an Application

Free Resources from Intertech

Complete Guide to Becoming a Full Stack Developer

Free Book Chapter: Spring Web

Free Whitepaper: Top 10 Nasty Java Bugs (And How to Fix Them)

X