Oracle WebLogic Developing Enterprise Java Beans

Course:   WLEJB
Duration:   5 Days
Level:   I
On our website at:   http://www.verhoef-training.com/courses/WLEJB.html
 
Course Summary

This course is a comprehensive introduction to writing Enterprise JavaBeans (EJB) using BEA WebLogic Server 8, 9 or 10. An overview of J2EE technology is provided, followed by hands-on experience with JNDI, JDBC, JMS, session beans, entity beans, and message-driven beans. The EJB 2.x specification is covered, with emphasis on container-managed persistence (CMP) and container-managed relationships (CMR).

Topics Covered In This Course

OVERVIEW OF JEE

  • Java Platforms
  • Characteristics of "Enterprise" Computing
  • JEE Technologies
  • Multi-Tier Architectures
  • Advantages of Multi-Tier Architectures
  • Container-Based Approach
  • JEE Application Models
  • JEE Deployments

INTRODUCTION TO WEBLOGIC???

  • What is WebLogic?
  • Overview of WebLogic
  • WebLogic Directory Structure
  • Starting and Stopping WebLogic
  • The weblogic.Admin Utility
  • Other Administrative Commands
  • WebLogic Scripting Tool
  • Administration Console
  • WebLogic Development Environment Setup

JAVA NAMING AND DIRECTORY INTERFACE

  • What is JNDI?
  • Benefits of JNDI
  • Naming Services
  • Directory Services
  • Using JNDI
  • Context Operations
  • JNDI Utility Class
  • JNDI Example
  • Running the JNDI Example
  • Naming Exceptions

ENTERPRISE JAVABEANS

  • Enterprise JavaBeans Component Model
  • Parties Involved in EJB Deployment
  • EJB Server and EJB Container
  • Types of Enterprise Beans
  • EJB Wrapper Interfaces
  • Deployment Descriptors
  • Context and Environment Objects
  • Summary of EJB Environment
  • The Remote Interface
  • The Home Interface
  • The Enterprise Bean Class
  • The Client Code
  • Deploying the EJB in WebLogic
  • Ant Build Files for the "Hello World" Bean
  • The ejb-jar.xml File
  • The weblogic-ejb-jar.xml File
  • Creating and Running the Application

SESSION BEANS

  • Session Bean Lifetime
  • Session Bean Interface
  • Session Bean Lifecycles
  • Stateless Session Bean Example (TaxBean)
  • Accessing Environment Entries
  • Deployment Settings for the TaxBean
  • Pool Settings for Stateless Session Beans
  • Deploying and Running the Tax Application
  • Stateful Session Bean Example (CartBean)
  • Exceptions Thrown by the CartBean
  • Cache Settings for Stateful Session Beans
  • Deploying and Running the Cart Application

USING JDBC DATA SOURCES

  • Connection Pools
  • JDBC Data Sources
  • Data Source Example
  • Configuring JDBC Data Sources
  • Running the JDBC Examples
  • Executing a Query  

BMP ENTITY BEANS

  • Entity Beans
  • Entity Bean Interface
  • Lifecycle of an Entity Bean
  • Bean-Managed Persistence Example
  • Deploying Entity Beans
  • Deployment Settings for Customer Bean
  • Pool and Cache Settings for Entity Beans
  • Running the Customer Application

CMP ENTITY BEANS

  • Container-Managed Persistence
  • Primary Key Class
  • Container-Managed Persistence Example
  • Mapping Container-Managed Fields
  • Deployment Settings for Product Bean
  • Settings for Custom Finders
  • EJB Query Language
  • Running the Product Application
  • Mapping to Multiple Database Tables

SESSION FACADE PATTERN

  • J2EE Design Patterns
  • Session Facade Pattern
  • Transactions
  • Container-Managed Transactions
  • Transaction Attributes
  • System vs. Application Exceptions
  • Rolling Back a Container-Managed Transaction
  • Example - ItemOrderer Bean
  • Deployment Settings for ItemOrderer Bean
  • Creating an Enterprise Application

CONTAINER-MANAGED RELATIONSHIPS

  • Local Interfaces
  • Container-Managed Relationships
  • Container-Managed Relationship (CMR) Example
  • CMR Example - Local Interfaces
  • CMR Example - Local Home Interfaces
  • CMR Example - Entity Bean Classes
  • Transfer Object Pattern
  • CMR Example - Session Bean
  • CMR Example - Deployment Descriptors
  • Running the CMR Example
  • Many-to-Many Relationships

EJB SECURITY

  • J2EE Security
  • Adding Users in the Administration Console
  • Specifying Security for EJBs
  • Mapping Roles to Users

JAVA MESSAGE SERVICE

  • Introduction
  • JMS and the J2EE Platform
  • Basic JMS Concepts
  • The JMS Programming Model
  • Point-to-Point Example - Sender
  • Point-to-Point Example ??? Receiver
  • Configuring JMS for WebLogic
  • Running the Point-to-Point Example
  • Publish/Subscribe Example - Publisher
  • Publish/Subscribe Example - Subscriber
  • Running the Publish/Subscribe Example
  • Reliable Message Delivery

MESSAGE-DRIVEN BEANS

  • Message-Driven Beans
  • Message-Driven Bean Example
  • Running the Message-Driven Bean Example
  • Message-Driven Bean Lifecycle
  • Transactions
  • Message Acknowledgement

EJB TIMER SERVICE

  • Overview of the Timer Service
  • Timer Service API
  • Creating Timers
  • Canceling and Saving Timers
  • Example
  • Running the Example

ADDITIONAL TOPICS

ANT

  • Ant Basics
  • Properties
  • Targets
  • Tasks
  • Example Build File
  • A Few Details
  • Ant Command Line Options

REFERENCE SHEETS

  • WebLogic Directory Structure
  • WebLogic EJB Deployment
  • Summary of EJB Methods

EJB DESIGN PATTERNS

  • Running the Demo Application
  • Service Locator Pattern
  • Session Facade Pattern
  • Transfer Object Pattern
  • Accessing an Auxiliary Library

WEB RESOURCES

  • Java Technology
  • WebLogic
What You Can Expect

BENEFITS OF ATTENDANCE:

Upon completion of this course, students will be able to:

Who Should Take This Course

WHO SHOULD ATTEND:

This course is for experienced Java programmers and software engineers preparing to write Enterprise JavaBeans for J2EE applications hosted on BEA WebLogic Server.

Recommended Prerequisites

PREREQUISITES:

Students should be comfortable with Java programming and object-oriented concepts. A minimum of six months coding experience is suggested. In addition, students should have prior experience using RMI and JDBC.

Related Courses
Code Course Title Duration Level
WLADM1
WebLogic 11 Server Administration
5 Days
I
Details
JAVAEJB
Developing Java EJB Applications
5 Days
II
Details

Every student attending a Verhoef Training class will receive a certificate good for $100 toward their next public class taken within a year.

You can also buy "Verhoef Vouchers" to get a discounted rate for a single student in any of our public or web-based classes. Contact your account manager or our sales office for details.