O'Reilly logo

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Enterprise JavaBeans™ Component Architecture: Designing and Coding Enterprise Applications

Book Description

Proven techniques and patterns for enterprise development.

  • Design guidelines for EJB 2.0 component architecture

  • Powerful patterns for enterprise application design

  • Extensive real-world code examples

  • Covers every type of component, including message-driven beans

  • This book simplifies the creation of well-designed enterprise applications using the upgraded Enterprise JavaBeans 2.0 specification. Experienced Java platform mentors Gail Anderson and Paul Anderson use detailed code examples to introduce every key skill involved in creating components, stand-alone Java platform clients, and JavaServer Pages API clients. They introduce powerful EJB platform design patterns, and show how to apply them in real-world projects while avoiding critical errors in application design. Using actual business components, the authors show how to make the most of these key EJB component architecture features:

  • Stateless and stateful session beans

  • Entity beans with bean-managed persistence

  • Entity beans with container-managed persistence

  • Container-managed relationships

  • Local and remote interfaces

  • The Enterprise JavaBeans Query Language

  • EJB 2.0 specification message driven beans

  • Each chapter includes a "Design Guidelines and Patterns" section designed to help you assess tradeoffs associated with your design decisions, and key point summaries that tie together important concepts. In short, Anderson and Anderson give you everything you need to build EJB 2.0 platform applications with maximum robustness, scalability, and performance.

    Everything you need to take full advantage of the EJB 2.0 specification:

  • Extensive code examples—real-world business components with just enough complexity to explain subtle design issues

  • How to apply J2EE platform design patterns—Value Object, Data Access Object, Value List Iterator, and Session Fa¿ade Pattern

  • Design guidelines for building distributed applications that avoid common pitfalls

  • Expert insight into matching enterprise beans to application requirements

  • Crystal-clear explanations of the key concepts that make EJB technology so powerful

  • Table of Contents

    1. Copyright
    2. Preface
    3. Acknowledgments
    4. Introduction
      1. What Is the Enterprise JavaBeans Architecture?
      2. How This Book Is Organized
      3. Our Vision
      4. Reader Audience
      5. About the Examples
      6. Source Code Online
    5. Enterprise JavaBeans Overview
      1. The J2EE Architecture
      2. The J2EE Components
      3. The J2EE Application Server
      4. Enterprise JavaBeans
      5. Key Point Summary
    6. Stateless Session Beans
      1. Introducing Stateless Session Beans
      2. The Loan Enterprise Bean
      3. Stand-alone Java Application Client
      4. Web Component Client (JSP Client)
      5. Design Guidelines and Patterns
      6. Key Point Summary
    7. Session Beans with JDBC
      1. Session Beans and JDBC
      2. Music Stateless Session Bean
      3. A Java Swing Application Client
      4. JSP Web Component Client
      5. Data Access Object Pattern
      6. Design Guidelines and Patterns
      7. Using Exceptions with EJBs
      8. Key Point Summary
    8. Stateful Session Beans
      1. Introducing Stateful Session Beans
      2. MusicCart Stateful Session Bean
      3. Value List Iterator Pattern
      4. Web Component Client
      5. Local Interfaces
      6. Design Guidelines and Patterns
      7. Key Point Summary
    9. Entity Beans with BMP
      1. Introducing Entity Beans
      2. Customer Entity Bean
      3. Entity Bean Test Client
      4. Transaction Overview
      5. Session Facade Pattern
      6. Web Component Client
      7. Design Guidelines and Patterns
      8. Key Point Summary
    10. Entity Beans with CMP
      1. Introducing Container-Managed Persistence
      2. The Three Entity Beans
      3. Session Facade Pattern
      4. Web Component Client
      5. Administrator Client
      6. Design Guidelines and Patterns
      7. Key Point Summary
    11. Message-Driven Beans
      1. Messaging Architectures
      2. Introducing JMS
      3. Designing Message-Driven Beans
      4. Student Message-Driven Bean
      5. ShipOrder Message-Driven Bean
      6. Design Guidelines and Patterns
      7. Key Point Summary
    12. Appendix
      1. MusicApp Swing Application
    13. Index