Sams Teach Yourself EJB in 21 Days

Book description

Sams Teach Yourself EJB in 21 Days introduces the development and deployment aspects of EJB, the fastest growing standards in developing Java applications in and enterprise environment. EJBs are, functionally, distributed network aware components for developing secure, scalable, transactional, and multi-user components in a J2EE environment. Sams Teach Yourself EJB in 21 Days covers the new features of EJB 2.0, such as local interface, CMP, and CMR. It provides hands-on examples based on practical solutions found in the industry. Tips and best practices give beginners an edge to avoid repeated mistakes. The review questions provide the reader with a study guide. Source code for a complete credit approval process in a transactional e-Commerce environment is provided.

Table of contents

  1. Copyright
  2. About the Authors
  3. Acknowledgments
  4. We Want to Hear from You!
  5. Introduction
  6. Enterprise Java Architecture
    1. Understanding EJB Architecture
      1. The Challenges of Developing Enterprise Applications
      2. What's an EJB?
      3. EJB Architecture Overview
      4. Why EJB?
      5. Looking Inside an EJB
      6. Essential EJB Container Services
      7. Understanding EJB Roles
      8. The University Registration System
      9. Best Practices
      10. Summary
      11. Q&A
      12. Quiz
      13. Exercises
    2. Understanding EJB Types and Interfaces
      1. Enterprise JavaBean Types
      2. Enterprise JavaBean Under the Hood
      3. EJB Interfaces
      4. Java Remote Method Invocation over Internet Inter-ORB Protocol Technology
      5. Remote and Local Interfaces
      6. Deployment Descriptors
      7. Packaging and Deploying Enterprise JavaBeans
      8. Enterprise JavaBean Restrictions
      9. Best Practices
      10. Summary
      11. Q&A
      12. Quiz
      13. Exercises
    3. Understanding Session Beans
      1. What Is Conversational State?
      2. What Are Session Beans?
      3. Session Bean Files
      4. Characteristics of Session Beans
      5. Types of Session Beans
      6. Session Bean Methods
      7. Life Cycle of Session Beans
      8. Comparing Stateless and Stateful Session Beans
      9. Best Practices
      10. Summary
      11. Q&A
      12. Quiz
      13. Exercises
    4. Using JNDI for Naming Services and Components
      1. Naming Services
      2. Directory Services
      3. What Is JNDI?
      4. JNDI API
      5. Context Operations
      6. Using JNDI in J2EE Applications
      7. Best Practices
      8. Summary
      9. Q&A
      10. Quiz
      11. Exercises
    5. Developing Stateless Session Beans
      1. Looking Under the Hood of a Stateless Session Bean
      2. Designing the Stateless Session Bean
      3. Implementing the Stateless Session Bean
      4. Packaging the Enterprise Bean
      5. Writing a Client
      6. Running the Example
      7. Best Practices
      8. Summary
      9. Q&A
      10. Quiz
      11. Exercises
    6. Developing Stateful Session Beans
      1. Looking Under the Hood of the Stateful Session Bean
      2. Designing the Stateful Session Bean
      3. Implementing the Stateful Session Bean
      4. Writing the Client
      5. Packaging and Deploying the Enterprise Bean
      6. Running the Example
      7. Best Practices
      8. Summary
      9. Q&A
      10. Quiz
      11. Exercises
    7. Designing Web Applications
      1. Understanding Web Applications
      2. Working with Servlets
      3. Tracking User Session by Servlets
      4. Learning JavaServer Pages
      5. Using a JSP Tag Library
      6. Understanding the JavaBeans Java Class
      7. Using MVC in Designing Web Applications
      8. Packaging Web Applications
      9. Best Practices
      10. Summary
      11. Q&A
      12. Quiz
      13. Exercises
  7. Entity Beans and Message-Driven Beans
    1. Understanding Entity Beans
      1. What Are Entity Beans?
      2. Characteristics of Entity Beans
      3. Comparing Entity Beans and Session Beans
      4. Types of Entity Persistence
      5. Entity Bean Files
      6. Entity Bean Methods
      7. Life Cycle of an Entity Bean
      8. Best Practices
      9. Summary
      10. Q&A
      11. Quiz
      12. Exercises
    2. Using JDBC to Connect to a Database
      1. Why JDBC?
      2. JDBC Architecture
      3. Introducing the JDBC API
      4. Connecting to a Data Source
      5. Data Manipulation
      6. Optimized Queries to the Database
      7. Using Local Transactions
      8. Using Batch Updates
      9. Working with Metadata
      10. Working with JDBC Through a Full Example
      11. Best Practices
      12. Summary
      13. Q&A
      14. Quiz
      15. Exercises
    3. Developing Bean-Managed Persistence Entity Beans
      1. Looking Under the Hood of a BMP Entity Bean
      2. Designing the BMP Entity Bean
      3. Implementing the BMP Entity Bean
      4. Writing a Client
      5. Packaging and Deploying the Enterprise Bean
      6. Running the Example
      7. Best Practices
      8. Summary
      9. Q&A
      10. Quiz
      11. Exercises
    4. Developing Container-Managed Persistence Entity Beans
      1. Looking Under the Hood of a CMP Entity Bean
      2. Designing a CMP Entity Bean
      3. Implementing the CMP Entity Bean
      4. Writing a Client
      5. Packaging and Deploying the Enterprise Bean
      6. Running the Example
      7. Best Practices
      8. Summary
      9. Q&A
      10. Quiz
      11. Exercises
    5. Developing Container-Managed Relationships
      1. Examining Container-Managed Relationships
      2. Implementing Container-Manager Relationships
      3. Designing Container-Managed Relationships
      4. Defining the Home Interfaces
      5. Defining the Remote Interfaces
      6. Implementing the Enterprise Bean Classes
      7. Declaring the Deployment Descriptors
      8. Writing a Client
      9. Packaging and Deploying the Enterprise Beans
      10. Running the Example
      11. Best Practices
      12. Summary
      13. Q&A
      14. Quiz
      15. Exercises
    6. Understanding JMS and Message-Driven Beans
      1. Learning the JMS Fundamentals
      2. Understanding JMS Architecture
      3. Exploring Messaging Models
      4. Understanding JMS Interfaces and Classes
      5. Designing Reliable Messaging Clients
      6. Anatomy of JMS Messages
      7. Message-Driven Beans
      8. Best Practices
      9. Summary
      10. Q&A
      11. Quiz
      12. Exercises
    7. Developing Message-Driven Beans
      1. Looking Under the Hood of an MDB
      2. Designing the Message-Driven Bean
      3. Implementing the Enterprise Bean Class
      4. Declaring the Deployment Descriptor
      5. Writing a Client
      6. Packaging and Deploying the Enterprise Bean
      7. Running the Example
      8. Examining the Life Cycle of a Message-Driven Bean
      9. Best Practices
      10. Summary
      11. Q&A
      12. Quiz
      13. Exercise
  8. Advanced EJB Applications
    1. Understanding J2EE Architecture
      1. J2EE Overview
      2. The Evolution of J2EE Architecture
      3. Understanding the J2EE Container Model
      4. Exploring J2EE Protocols
      5. Understanding the J2EE Common Services APIs
      6. Exploring the J2EE Data Formats
      7. Packaging J2EE Applications
      8. Designing J2EE Applications
      9. Best Practices
      10. Summary
      11. Q&A
      12. Quiz
      13. Exercises
    2. Understanding J2EE Transactions
      1. Understanding Transaction Fundamentals
      2. Types of Transactions
      3. Java Transaction API
      4. Exploring Transactions Across the J2EE Tiers
      5. Example of Distributed Transactions
      6. Best Practices
      7. Summary
      8. Q&A
      9. Quiz
      10. Exercise
    3. Building Container-Managed Transaction Beans
      1. Understanding Container-Managed Transactions
      2. Reviewing Transaction Attributes with CMT
      3. Transaction Semantics for CMT
      4. Example for Developing EJB with CMT
      5. Best Practices
      6. Summary
      7. Q&A
      8. Quiz
      9. Questions
      10. Exercises
    4. Building Bean-Managed Transaction Beans
      1. Why Bean-Managed Transactions?
      2. Using Local or Global Transactions in BMT
      3. Which Types of EJBs Can Use BMT?
      4. Developing an EJB with BMT
      5. Best Practices
      6. Summary
      7. Q&A
      8. Quiz
      9. Exercises
    5. Understanding Security
      1. Reviewing Security Fundamentals
      2. Exploring J2EE Security Across All Tiers
      3. JAAS Security
      4. Security Responsibilities
      5. Best Practices
      6. Summary
      7. Q&A
      8. Quiz
      9. Exercises
    6. Implementing JavaMail in EJB Applications
      1. Understanding JavaMail
      2. Learning the JavaMail API
      3. Using the JavaMail API
      4. Developing JavaMail Applications
      5. Implementing the Client
      6. Running the JavaMail Application
      7. Best Practices
      8. Summary
      9. Q&A
      10. Quiz
      11. Exercises
    7. Developing a Complete Enterprise Application
      1. Understanding the Application
      2. Analyzing the Application
      3. Architecting the System
      4. Designing the Application
      5. Packaging and Deploying the Application
      6. Running the Sample Application
      7. Best Practices
      8. Summary
      9. Q&A
      10. Quiz
      11. Exercises
  9. Appendixes
    1. WebLogic Application Server 7.0
      1. Downloading and Installing WebLogic 7.0
      2. Configuring WebLogic 7.0
    2. JBoss Application Server 3.0
      1. Downloading and Installing JBoss 3.0
      2. Configuring JBoss 3.0
      3. Running and Testing JBoss 3.0
    3. Understanding XML
      1. Exploring an XML Document
      2. Summary of XML Document Markups
      3. Characteristics of XML Documents
    4. Introduction to UML Notation
      1. Class Diagrams
      2. State Diagrams
      3. Sequence Diagrams
    5. Glossary of Terms
      1. Glossary
  10. Index

Product information

  • Title: Sams Teach Yourself EJB in 21 Days
  • Author(s): Ragae Ghaly, Krishna Kothapalli
  • Release date: October 2002
  • Publisher(s): Sams
  • ISBN: 0672324237