Enterprise JavaBeans

Course Number:J310
Duration:4 days
Standard Price:$8,800 for up to 10 students
Government Price:$7,920 for up to 10 students
Location:on-site

Description

Explores the Enterprise JavaBean (EJB) Component Architecture for building multi-tier client/server applications. Java programmers will be able to write and deploy reusable, distributed components and take advantage of the services offered by the EJB infrastructure.

Outline

EJB and the J2EE Architecture

  • Evolution of Distributed Computing on the Web
  • J2EE Solution
  • Enterprise JavaBean
  • Roles in Enterprise JavaBeans Development
  • EJB Container and Application Server
  • Reference Implementation Services

Getting Started

  • Defining the Bean Class
  • Remote Interface
  • Writing Business Methods
  • Home Interface
  • Creating the J2EE Application
  • Packaging the Enterprise Bean
  • Deploying the J2EE Application
  • Client Application
  • Locating the Bean
  • Create an Enterprise Bean Instance
  • Invoking the Bean's Methods

javax.ejb Package

  • Remote Interface
  • Home Interface
  • Local Interface
  • Container Objects
  • SessionBean Interface
  • EntityBean Interface
  • MessageDrivenBean Interface
  • EJB Exceptions
  • EJB Context

Session Beans

  • State
  • Lifecycle
  • Stateless Session Beans
  • Stateful Session Beans
  • HttpSessions and Cookies

Deployment

  • EJB Deployment Process
  • Anatomy of the Deployment Descriptor
  • Structural Data
  • Assembly
  • Environment Entities
  • Bundling

EJB Clients

  • Client Types
  • Web Components
  • JNDI API

Entity Beans

  • Persistence Models
  • EntityBean Home Interface
  • Finder Methods
  • Primary Key
  • Component Interface
  • Lifecycle

Bean-Managed Persistence

  • BMP
  • Create
  • Remove
  • Load
  • Store
  • EjbFindByPrimaryKey and other Finder
  • Methods
  • DBObjects

Container-Managed Persistence

  • CMP
  • Two Layers of Responsibility
  • Coding Conventions in the Abstract Entity
  • Proprietary Deployment Descriptors
  • Container-Managed Relationships
  • EJBQL: Finders in CMP
  • Limitations of CMP

Transactions

  • Transactions in EJB
  • Container-Managed Transactions
  • Transaction Support Attributes
  • Bean-Managed Transactions
  • Session Synchronization

EJB Security

  • Security Issues
  • Authentication
  • Deploying a Secure Bean
  • Authorization
  • Container-Managed Security
  • Security and Deployment Descriptor
  • Bean-Managed Security
  • Bean-Managed Security and Deployment Descriptor

JMS

  • JMS Concepts
  • Parent Interfaces and GMD
  • JMS Definitions
  • Message Object
  • Multi-Threading and JMS Exception
  • PTP Domain and Interfaces
  • Pub/Sub Domain and Interfaces
  • JMS Server and Destination
  • Handling the Message
  • Producing the Message

Message-Driven Beans

  • Message-Driven Beans
  • Asynchronous Processing
  • MDB Interfaces
  • Deploying MDBs
  • MDB Deployment Descriptor Elements

Appendix A - Supporting Technologies

  • JDBC
  • XML
  • RMI
  • Servlets
  • JavaServer Pages
  • Database Transaction Isolation Levels

Who should attend

Java programmers who wish to use Enterprise JavaBeans to develop distributed intranet and internet applications.

Prerequisites

Java Programming and some Java development experience. Familiarity with JavaBeans, RMI and JDBC is recommended.