Developing Enterprise Java Beans Using WebLogic™ 9
Revision: TE1005_20070315
(9.04 KB) View, Download, or Print Catalog as a PDF.
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
- Java Platforms
- Characteristics of "Enterprise" Computing
- JEE Technologies
- Multi-Tier Architectures
- Advantages of Multi-Tier Architectures
- Container-Based Approach
- JEE Application Models
- JEE Deployments
- Chapter 2: 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
- Chapter 3: 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
- Chapter 4: 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
- Chapter 5: 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
- Chapter 6: Using JDBC Data Sources
- Connection Pools
- JDBC Data Sources
- Data Source Example
- Configuring JDBC Data Sources
- Running the JDBC Examples
- Executing a Query
- Chapter 7: 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
- Chapter 8: 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
- Chapter 9: 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
- Chapter 10: 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
- Chapter 11: EJB Security
- J2EE Security
- Adding Users in the Administration Console
- Specifying Security for EJBs
- Mapping Roles to Users
- Chapter 12: 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
- Chapter 13: Message-Driven Beans
- Message-Driven Beans
- Message-Driven Bean Example
- Running the Message-Driven Bean Example
- Message-Driven Bean Lifecycle
- Transactions
- Message Acknowledgement
- Chapter 14: EJB Timer Service
- Overview of the Timer Service
- Timer Service API
- Creating Timers
- Canceling and Saving Timers
- Example
- Running the Example
- Appendix A: Ant
- Ant Basics
- Properties
- Targets
- Tasks
- Example Build File
- A Few Details
- Ant Command Line Options
- Appendix B: Reference Sheets
- WebLogic Directory Structure
- WebLogic EJB Deployment
- Summary of EJB Methods
- Appendix C: EJB Design Patterns
- Running the Demo Application
- Service Locator Pattern
- Session Facade Pattern
- Transfer Object Pattern
- Accessing an Auxiliary Library
- Appendix D: Web Resources
- Java Technology
- WebLogic



