Que using enterprise javabeans 2 0 special edition sep 2001 ISBN 0789725673

1.1K 62 0
Que using enterprise javabeans 2 0 special edition sep 2001 ISBN 0789725673

Đang tải... (xem toàn văn)

Tài liệu hạn chế xem trước, để xem đầy đủ mời bạn chọn Tải xuống

Thông tin tài liệu

• Table of Contents • Examples Special Edition Using Enterprise JavaBeans™ 2.0 By Chuck Cavaness, Brian Keeton Publisher : Que Pub Date : September 19, 2001 ISBN : 0-7897-2567-3 Pages : 648 Slots : 1 Special Edition Using Enterprise JavaBeans 2.0 starts with a description of how Enterprise JavaBeans fits into the big picture of J2EE development, then covers such topics as: Locating EJB's using JNDI Managing data with EJB Query Language Building JMS applications using the new Message-driven Bean Planning EJB applications using design patterns Later chapters describe advanced development topics including interoperability, horizontal services and clustering Throughout the book, the authors construct a component-based auction web site using the J2EE architecture as a practical example • Table of Contents • Examples Special Edition Using Enterprise JavaBeans™ 2.0 By Chuck Cavaness, Brian Keeton Publisher : Que Pub Date : September 19, 2001 ISBN : 0-7897-2567-3 Pages : 648 Slots : 1 Copyright About the Authors Acknowledgments Tell Us What You Think! Introduction This Book Is for You How This Book Is Organized Conventions Used in This Book Part I: Developing Enterprise JavaBeans Chapter 1 Introduction to Enterprise Applications Chapter 2 Setting the Stage–An Example Auction Site Chapter 3 EJB Concepts The Enterprise JavaBeans Architecture Component-Based Distributed Computing N-Tiered Architectures Why Use EJB? The Auction Example Overview of an English Auction Choosing the Use Cases to Implement Defining the Object Model What's Next? Grasping the Concepts Early What Is an Enterprise Bean? EJB Roles and Their Responsibilities Local Versus Remote EJB Clients Using RMI to Communicate with Enterprise JavaBeans Accessing an EJB Through Its Component Interface Locating Enterprise Beans Using the Home Interface Deciding Whether to Use a Local or Remote Client Creation and Removal of EJBs Passivation and Activation Object Pooling Handles The EJBMetaData Class EJB Server and Container Implementations Chapter 4 Java Naming and Directory Interface Chapter 5 Entity Beans Chapter 6 Bean-Managed Persistence Why Applications Need Naming and Directory Services Overview of the JNDI Architecture Selecting and Configuring a JNDI Provider The JNDI Environment Properties Setting the JNDI Environment Properties The Context and InitialContext Objects Getting the Environment for a Context Object Using the lookup Method to Locate JNDI Resources Locating EJB Objects Accessing an EJB's Environment Establishing Security Through the InitialContext JNDI and Clustering Troubleshooting What Is an Entity Bean? Declaring the Component Interface Defining the Primary Key Class Declaring the Home Interface Implementing an Entity Bean Inheritance and Entity Beans Are Entity Beans Worth It? Choosing to Manage Persistence Yourself JDBC Primer Configuring a Data Source Creating an Entity Bean Loading and Storing an Entity Accessing Other Entity Beans Implementing Finder Methods Deleting an Entity Deploying an Entity Bean Using BMP Troubleshooting Chapter 7 Container-Managed Persistence Chapter 8 EJB Query Language Chapter 9 Session Beans Building Portable Entity Beans Declaring a CMP Entity Bean Implementing the Container Callback Methods Deploying an Entity Bean Using CMP Managing Relationships Using EJB 1.1 CMP Troubleshooting What Is the EJB Query Language? Defining a FROM Clause Defining a WHERE Clause Defining a SELECT Clause Using the Built-In Functions EJB QL Syntax in BNF Notation Troubleshooting What Is a Session Bean? Differences Between Stateless and Stateful Session Beans Declaring the Component Interface Declaring the Home Interface Chapter 10 Java Message Service Implementing a Session Bean Deploying a Session Bean Reentrant Issues Troubleshooting Introduction to Messaging Components of the JMS Architecture The Two JMS Message Models The JMS Interfaces The Details of a JMS Message Message Selection and Filtering Using the JMS Point-to-Point Model Using the JMS Publish/Subscribe Model Synchronous Versus Asynchronous Messaging Message Persistence Using Transactions with JMS Using JMS with Enterprise JavaBeans Troubleshooting Chapter 11 Message-Driven Beans Chapter 12 Transactions Chapter 13 Exception Handling Chapter 14 Security Design and Management What Are Message-Driven Beans? The Message-Driven Bean and the Container Using Message-Driven Beans with EJB Using JMS Queues or Topics with Message-Driven Beans Creating a Message-Driven Bean Deploying a Message-Driven Bean Sending Messages to a Message-Driven Bean Acknowledging Messages from Message-Driven Beans Using Transactions with Message-Driven Beans Troubleshooting Understanding Transactions Passing the ACID Test Programming with the Java Transaction API Using Container-Managed Transactions Using Bean-Managed Transactions Using Client-Demarcated Transactions Isolating Access to Resources Troubleshooting EJB Exception Handling Application Exceptions System Exceptions Exceptions and Transactions Packaging Exceptions Troubleshooting The Importance of Application Security Understanding Your Application's Security Requirements Basic Security Concepts Java Security Fundamentals Using Security with Enterprise JavaBeans and J2EE Sketching Out the Auction Security Java Authentication and Authorization Service (JAAS) Chapter 15 Deployment Deployment Descriptors and EJB Roles Bean Provider Responsibilities Application Assembler Responsibilities Deployer Responsibilities Packaging EJBs Troubleshooting Part II: Design and Performance Chapter 16 Patterns and Strategies in EJB Design Chapter 17 Addressing Performance Chapter 18 Performance and Stress Testing Your Applications What Are Patterns? Strategies for Enterprise JavaBeans Designing EJB Classes and Interfaces Managing Client Access Implementing a Singleton in EJB Troubleshooting The Role of Performance in Design Minimizing Remote Calls Optimizing Entity Bean Persistence Building a Pick List Managing Transactions Troubleshooting Why Stress Test Your Applications? Performance Testing Your Beans Stress Testing Your Beans Using ECperf 1.0 Troubleshooting Part III: Building the Web Tier Chapter 19 Building a Presentation Tier for EJB The Different Types of Presentation Tiers Using a Faỗade Pattern to Hide EJB Using Servlets and Java Server Pages with EJB Using JSP Tag Libraries Using the Struts Open-Source Framework Caching on the Web Server or in Stateful Session Beans Part IV: Advanced Concepts Chapter 20 Distribution and EJB Interoperability Chapter 21 Horizontal Services Chapter 22 EJB Clustering Concepts Chapter 23 EJB 2.0 Programming Restrictions Interoperability Overview Portability Versus Interoperability EJB 2.0 Interoperability Goals The Relationship Between CORBA and Enterprise JavaBeans Remote Invocation Interoperability Transaction Interoperability Naming Interoperability Security Interoperability What Are Horizontal Services? Horizontal Services Provided by EJB Traditional Buy Versus Build Analysis Auction Example Horizontal Services Building the Auction Logging Service Java 1.4 Logging API Building an E-Mail Horizontal Service Troubleshooting Too Much Isn't Always a Good Thing What Is Clustering? Clustering in the Web Tier Clustering in the EJB Tier Single VM Versus Multiple VM Architectures The Purpose of the Restrictions The EJB 2.0 Restrictions Summary Part V: Appendixes Appendix A The EJB 2.0 API Interfaces Exceptions The javax.ejb.spi Package Appendix B Changes from EJB 1.1 Local Clients Message-Driven Beans Home Interface Business Methods Container-Managed Persistence Changes EJB Query Language Security Changes Component Interoperability Copyright Copyright â 2002 by Queđ Corporation All rights reserved No part of this book shall be reproduced, stored in a retrieval system, or transmitted by any means, electronic, mechanical, photocopying, recording, or otherwise, without written permission from the publisher No patent liability is assumed with respect to the use of the information contained herein Although every precaution has been taken in the preparation of this book, the publisher and author assume no responsibility for errors or omissions Nor is any liability assumed for damages resulting from the use of the information contained herein Library of Congress Catalog Card Number: 2001087886 Printed in the United States of America First Printing: September 2001 04 03 02 01 4 3 2 1 Trademarks All terms mentioned in this book that are known to be trademarks or service marks have been appropriately capitalized Que Corporation cannot attest to the accuracy of this information Use of a term in this book should not be regarded as affecting the validity of any trademark or service mark JavaBeans is a trademark of Sun Microsystems Warning and Disclaimer Every effort has been made to make this book as complete and as accurate as possible, but no warranty or fitness is implied The information provided is on an "as is" basis The authors and the publisher shall have neither liability nor responsibility to any person or entity with respect to any loss or damages arising from the information contained in this book or from the use of the CD or programs accompanying it Credits Associate Publisher Dean Miller Acquisitions Editor Todd Green Development Editor Sean Dixon Managing Editor Thomas F Hayes Project Editor Tonya Simpson Copy Editor Sossity Smith Indexer Bill Myers ... Table of Contents • Examples Special Edition Using Enterprise JavaBeans 2. 0 By Chuck Cavaness, Brian Keeton Publisher : Que Pub Date : September 19, 20 01 ISBN : 0- 7897 -25 67-3 Pages : 648 Slots... contained herein Library of Congress Catalog Card Number: 20 0 108 7886 Printed in the United States of America First Printing: September 20 01 04 03 02 01 4 3 2 1 Trademarks All terms mentioned in this book that are known to be... How This Book Is Organized Conventions Used in This Book Welcome to Enterprise JavaBeans 2. 0! As part of the Java 2 Enterprise Edition (J2EE), the Enterprise JavaBeans architecture has become the accepted standard for the development of

Ngày đăng: 26/03/2019, 17:07

Mục lục

  • Special Edition Using Enterprise JavaBeans 2.0

  • Table of Contents

  • Copyright

  • About the Authors

  • Acknowledgments

  • Tell Us What You Think!

  • Introduction

    • This Book Is for You

    • How This Book Is Organized

    • Conventions Used in This Book

    • Part I: Developing Enterprise JavaBeans

      • Chapter 1. Introduction to Enterprise Applications

        • The Enterprise JavaBeans Architecture

        • Component-Based Distributed Computing

        • N-Tiered Architectures

        • Why Use EJB?

        • Chapter 2. Setting the Stage–An Example Auction Site

          • The Auction Example

          • Overview of an English Auction

          • Choosing the Use Cases to Implement

          • Defining the Object Model

          • What's Next?

          • Chapter 3. EJB Concepts

            • Grasping the Concepts Early

            • What Is an Enterprise Bean?

Tài liệu cùng người dùng

  • Đang cập nhật ...

Tài liệu liên quan