Home > Store > Programming > Java

Sams Teach Yourself EJB in 21 Days

Register your product to gain access to bonus material or receive a coupon.

Sams Teach Yourself EJB in 21 Days

Best Value Purchase

Book + eBook Bundle

  • Your Price: $43.19
  • List Price: $71.98
  • About Adobe DRM eBooks
  • This eBook requires the free Adobe® Digital Editions software.

    Before downloading this DRM-encrypted PDF, be sure to:


    • Install the free Adobe Digital Editions software on your machine. Adobe Digital Editions only works on Macintosh and Windows, and requires the Adobe Flash Player. Please see the official system requirements.
    • Authorize your copy of Adobe Digital Editions using your Adobe ID (select AdobeID as the eBook vendor). If you don't already have an Adobe ID, you can create one here.

More Purchase Options

Book

  • Your Price: $31.99
  • List Price: $39.99
  • Usually ships in 24 hours.

eBook (Adobe DRM)

  • Your Price: $25.59
  • List Price: $31.99
  • About Adobe DRM eBooks
  • This eBook requires the free Adobe® Digital Editions software.

    Before downloading this DRM-encrypted PDF, be sure to:


    • Install the free Adobe Digital Editions software on your machine. Adobe Digital Editions only works on Macintosh and Windows, and requires the Adobe Flash Player. Please see the official system requirements.
    • Authorize your copy of Adobe Digital Editions using your Adobe ID (select AdobeID as the eBook vendor). If you don't already have an Adobe ID, you can create one here.

Description

  • Copyright 2003
  • Dimensions: 7-3/8" x 9-1/8"
  • Pages: 640
  • Edition: 1st
  • Book
  • ISBN-10: 0-672-32423-7
  • ISBN-13: 978-0-672-32423-9
  • eBook (Adobe DRM)
  • ISBN-10: 0-7686-6010-6
  • ISBN-13: 978-0-7686-6010-4

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.

Downloads

Downloads

All the examples developed in the book - 2,490 kb -- examples.zip

Sample Content

Online Sample Chapters

Enterprise JavaBeans: Understanding Session Beans

Understanding Session Beans

Table of Contents

(NOTE: Each chapter concludes with Best Practices, Summary, Q&A, Quiz, and Exercises.)

Introduction.

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.
Index.

Updates

Errata

The errata for the book is available here in Adobe Portable Document Format (PDF) format. You will need Adobe's Acrobat Reader to view these files. If you do not have the Acrobat Reader installed, you may go to Adobe Systems' web site to download this free reader.

Click on the links below to display the PDF file in a new window. Right-click on the link and select Save As if you want to download it to your hard drive.

Errata for the book - 68 kb -- 0672324237errata.pdf

Submit Errata

More Information

Unlimited one-month access with your purchase
Free Safari Membership