Adobe® Digital Editions software.This eBook requires the free
Before downloading this DRM-encrypted PDF, be sure to:
Also available in other formats.
Register your product to gain access to bonus material or receive a coupon.
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.
(NOTE: Each chapter concludes with Best Practices, Summary, Q&A, Quiz, and Exercises.)
How This Book Is Organized. About This Book. Who Should Read This Book.
WEEK 1. ENTERPRISE JAVA ARCHITECTURE.Day 1. Understanding EJB Architecture.
The Challenges of Developing Enterprise Applications. What's an EJB? EJB Architecture Overview. Why EJB? Looking Inside an EJB. Essential EJB Container Services. Understanding EJB Roles. The University Registration System.Day 2. Understanding EJB Types and Interfaces.
Enterprise JavaBean Types. Enterprise JavaBean Under the Hood. EJB Interfaces. Java Remote Method Invocation over Internet Inter-ORB Protocol Technology. Remote and Local Interfaces. Deployment Descriptors. Packaging and Deploying Enterprise JavaBeans. Enterprise JavaBean Restrictions.Day 3. Understanding Session Beans.
What Is Conversational State? What Are Session Beans? Session Bean Files. Characteristics of Session Beans. Types of Session Beans. Session Bean Methods. Life Cycle of Session Beans. Comparing Stateless and Stateful Session Beans. Best Practices.Day 4. Using JNDI for Naming Services and Components.
Naming Services. Directory Services. What Is JNDI? JNDI API. Context Operations. Using JNDI in J2EE Applications.Day 5. Developing Stateless Session Beans.
Looking Under the Hood of a Stateless Session Bean. Designing the Stateless Session Bean. Implementing the Stateless Session Bean. Packaging the Enterprise Bean. Writing a Client. Running the Example.Day 6. Developing Stateful Session Beans.
Looking Under the Hood of the Stateful Session Bean. Designing the Stateful Session Bean. Implementing the Stateful Session Bean. Writing the Client. Packaging and Deploying the Enterprise Bean. Running the Example.Day 7. Designing Web Applications.
Understanding Web Applications. Working with Servlets. Tracking User Session by Servlets. Learning JavaServer Pages. Using a JSP Tag Library. Understanding the JavaBeans Java Class. Using MVC in Designing Web Applications. Packaging Web Applications.
WEEK 2. ENTITY BEANS AND MESSAGE-DRIVEN BEANS.Day 8. Understanding Entity Beans.
What Are Entity Beans? Characteristics of Entity Beans. Comparing Entity Beans and Session Beans. Types of Entity Persistence. Entity Bean Files. Entity Bean Methods. Life Cycle of an Entity Bean.Day 9. Using JDBC to Connect to a Database.
Why JDBC? JDBC Architecture. Introducing the JDBC API. Connecting to a Data Source. Data Manipulation. Optimized Queries to the Database. Using Local Transactions. Using Batch Updates. Working with Metadata. Working with JDBC Through a Full Example.Day 10. Developing Bean-Managed Persistence Entity Beans.
Looking Under the Hood of a BMP Entity Bean. Designing the BMP Entity Bean. Implementing the BMP Entity Bean. Writing a Client. Packaging and Deploying the Enterprise Bean. Running the Example.Day 11. Developing Container-Managed Persistence Entity Beans.
Looking Under the Hood of a CMP Entity Bean. Designing a CMP Entity Bean. Implementing the CMP Entity Bean. Writing a Client. Packaging and Deploying the Enterprise Bean. Running the Example.Day 12. Developing Container-Managed Relationships.
Examining Container-Managed Relationships. Implementing Container-Manager Relationships. Designing Container-Managed Relationships. Defining the Home Interfaces. Defining the Remote Interfaces. Implementing the Enterprise Bean Classes. Declaring the Deployment Descriptors. Writing a Client. Packaging and Deploying the Enterprise Beans. Running the Example.Day 13. Understanding JMS and Message-Driven Beans.
Learning the JMS Fundamentals. Understanding JMS Architecture. Exploring Messaging Models. Understanding JMS Interfaces and Classes. Designing Reliable Messaging Clients. Anatomy of JMS Messages. Message-Driven Beans.Day 14. Developing Message-Driven Beans.
Looking Under the Hood of an MDB. Designing the Message-Driven Bean. Implementing the Enterprise Bean Class. Declaring the Deployment Descriptor. Writing a Client. Packaging and Deploying the Enterprise Bean. Running the Example. Examining the Life Cycle of a Message-Driven Bean.
WEEK 3. ADVANCED EJB APPLICATIONS.Day 15. Understanding J2EE Architecture.
J2EE Overview. The Evolution of J2EE Architecture. Understanding the J2EE Container Model. Exploring J2EE Protocols. Understanding the J2EE Common Services APIs. Exploring the J2EE Data Formats. Packaging J2EE Applications. Designing J2EE Applications.Day 16. Understanding J2EE Transactions.
Understanding Transaction Fundamentals. Types of Transactions. Java Transaction API. Exploring Transactions Across the J2EE Tiers. Example of Distributed Transactions.Day 17. Building Container-Managed Transaction Beans.
Understanding Container-Managed Transactions. Reviewing Transaction Attributes with CMT. Transaction Semantics for CMT. Example for Developing EJB with CMT.Day 18. Building Bean-Managed Transaction Beans.
Why Bean-Managed Transactions? Using Local or Global Transactions in BMT. Which Types of EJBs Can Use BMT? Developing an EJB with BMT.Day 19. Understanding Security.
Reviewing Security Fundamentals. Exploring J2EE Security Across All Tiers. JAAS Security. Security Responsibilities.Day 20. Implementing JavaMail in EJB Applications.
Understanding JavaMail. Learning the JavaMail API. Using the JavaMail API. Developing JavaMail Applications. Implementing the Client. Running the JavaMail Application.Day 21. Developing a Complete Enterprise Application.
Understanding the Application. Analyzing the Application. Architecting the System. Designing the Application. Packaging and Deploying the Application. Running the Sample Application.
APPENDIXES.Appendix A. WebLogic Application Server 7.0.
Downloading and Installing WebLogic 7.0. Configuring WebLogic 7.0.Appendix B. JBoss Application Server 3.0.
Downloading and Installing JBoss 3.0. Configuring JBoss 3.0. Running and Testing JBoss 3.0.Appendix C. Understanding XML.
Exploring an XML Document. Summary of XML Document Markups. Characteristics of XML Documents.Appendix D. Introduction to UML Notation.
Class Diagrams. State Diagrams. Sequence Diagrams.Appendix E. Glossary of Terms.