Skip Navigation Links

Course Length:
5 Days
Course Description:
This course is a comprehensive introduction to writing Enterprise JavaBeans (EJB) using BEA WebLogic Server 9. 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).
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.
Benefits of Attendance:
Upon completion of this course, students will be able to:
  • Start, stop, and configure WebLogic Server
  • Use JNDI to access database and EJB resources
  • Create JDBC data sources
  • Write stateless and stateful session beans
  • Use bean-managed and container-managed persistence
  • Understand and write XML-based deployment descriptors
  • Configure and deploy EJBs on the WebLogic server
  • Assemble J2EE-compliant enterprise applications
  • Use the Session Facade pattern
  • Handle database transactions in EJBs
  • Create security principals and roles
  • Apply security permissions to EJB methods
  • Create JMS destinations
  • Write message-driven beans
  • Use the EJB Timer Service
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.
Course Outline:
  • Chapter 1: Overview of JEE
    1. Java Platforms
    2. Characteristics of "Enterprise" Computing
    3. JEE Technologies
    4. Multi-Tier Architectures
    5. Advantages of Multi-Tier Architectures
    6. Container-Based Approach
    7. JEE Application Models
    8. JEE Deployments
  • Chapter 2: Introduction to WebLogic™
    1. What is WebLogic?
    2. Overview of WebLogic
    3. WebLogic Directory Structure
    4. Starting and Stopping WebLogic
    5. The weblogic.Admin Utility
    6. Other Administrative Commands
    7. WebLogic Scripting Tool
    8. Administration Console
    9. WebLogic Development Environment Setup
  • Chapter 3: Java Naming and Directory Interface
    1. What is JNDI?
    2. Benefits of JNDI
    3. Naming Services
    4. Directory Services
    5. Using JNDI
    6. Context Operations
    7. JNDI Utility Class
    8. JNDI Example
    9. Running the JNDI Example
    10. Naming Exceptions
  • Chapter 4: Enterprise JavaBeans
    1. Enterprise JavaBeans Component Model
    2. Parties Involved in EJB Deployment
    3. EJB Server and EJB Container
    4. Types of Enterprise Beans
    5. EJB Wrapper Interfaces
    6. Deployment Descriptors
    7. Context and Environment Objects
    8. Summary of EJB Environment
    9. The Remote Interface
    10. The Home Interface
    11. The Enterprise Bean Class
    12. The Client Code
    13. Deploying the EJB in WebLogic
    14. Ant Build Files for the "Hello World" Bean
    15. The ejb-jar.xml File
    16. The weblogic-ejb-jar.xml File
    17. Creating and Running the Application
  • Chapter 5: Session Beans
    1. Session Bean Lifetime
    2. Session Bean Interface
    3. Session Bean Lifecycles
    4. Stateless Session Bean Example (TaxBean)
    5. Accessing Environment Entries
    6. Deployment Settings for the TaxBean
    7. Pool Settings for Stateless Session Beans
    8. Deploying and Running the Tax Application
    9. Stateful Session Bean Example (CartBean)
    10. Exceptions Thrown by the CartBean
    11. Cache Settings for Stateful Session Beans
    12. Deploying and Running the Cart Application
  • Chapter 6: Using JDBC Data Sources
    1. Connection Pools
    2. JDBC Data Sources
    3. Data Source Example
    4. Configuring JDBC Data Sources
    5. Running the JDBC Examples
    6. Executing a Query
  • Chapter 7: BMP Entity Beans
    1. Entity Beans
    2. Entity Bean Interface
    3. Lifecycle of an Entity Bean
    4. Bean-Managed Persistence Example
    5. Deploying Entity Beans
    6. Deployment Settings for Customer Bean
    7. Pool and Cache Settings for Entity Beans
    8. Running the Customer Application
  • Chapter 8: CMP Entity Beans
    1. Container-Managed Persistence
    2. Primary Key Class
    3. Container-Managed Persistence Example
    4. Mapping Container-Managed Fields
    5. Deployment Settings for Product Bean
    6. Settings for Custom Finders
    7. EJB Query Language
    8. Running the Product Application
    9. Mapping to Multiple Database Tables
  • Chapter 9: Session Facade Pattern
    1. J2EE Design Patterns
    2. Session Facade Pattern
    3. Transactions
    4. Container-Managed Transactions
    5. Transaction Attributes
    6. System vs. Application Exceptions
    7. Rolling Back a Container-Managed Transaction
    8. Example - ItemOrderer Bean
    9. Deployment Settings for ItemOrderer Bean
    10. Creating an Enterprise Application
  • Chapter 10: Container-Managed Relationships
    1. Local Interfaces
    2. Container-Managed Relationships
    3. Container-Managed Relationship (CMR) Example
    4. CMR Example - Local Interfaces
    5. CMR Example - Local Home Interfaces
    6. CMR Example - Entity Bean Classes
    7. Transfer Object Pattern
    8. CMR Example - Session Bean
    9. CMR Example - Deployment Descriptors
    10. Running the CMR Example
    11. Many-to-Many Relationships
  • Chapter 11: EJB Security
    1. J2EE Security
    2. Adding Users in the Administration Console
    3. Specifying Security for EJBs
    4. Mapping Roles to Users
  • Chapter 12: Java Message Service
    1. Introduction
    2. JMS and the J2EE Platform
    3. Basic JMS Concepts
    4. The JMS Programming Model
    5. Point-to-Point Example - Sender
    6. Point-to-Point Example – Receiver
    7. Configuring JMS for WebLogic
    8. Running the Point-to-Point Example
    9. Publish/Subscribe Example - Publisher
    10. Publish/Subscribe Example - Subscriber
    11. Running the Publish/Subscribe Example
    12. Reliable Message Delivery
  • Chapter 13: Message-Driven Beans
    1. Message-Driven Beans
    2. Message-Driven Bean Example
    3. Running the Message-Driven Bean Example
    4. Message-Driven Bean Lifecycle
    5. Transactions
    6. Message Acknowledgement
  • Chapter 14: EJB Timer Service
    1. Overview of the Timer Service
    2. Timer Service API
    3. Creating Timers
    4. Canceling and Saving Timers
    5. Example
    6. Running the Example
  • Appendix A: Ant
    1. Ant Basics
    2. Properties
    3. Targets
    4. Tasks
    5. Example Build File
    6. A Few Details
    7. Ant Command Line Options
  • Appendix B: Reference Sheets
    1. WebLogic Directory Structure
    2. WebLogic EJB Deployment
    3. Summary of EJB Methods
  • Appendix C: EJB Design Patterns
    1. Running the Demo Application
    2. Service Locator Pattern
    3. Session Facade Pattern
    4. Transfer Object Pattern
    5. Accessing an Auxiliary Library
  • Appendix D: Web Resources
    1. Java Technology
    2. WebLogic