没有合适的资源?快使用搜索试试~ 我知道了~
Mastering Enterprise JavaBeans, 2nd Ed (Sybex).pdf
需积分: 9 14 下载量 45 浏览量
2009-01-09
12:18:16
上传
评论
收藏 2.24MB PDF 举报
温馨提示
试读
658页
Mastering Enterprise JavaBeans, 2nd Ed (Sybex).pdf
资源推荐
资源详情
资源评论
John Wiley & Sons, Inc.
NEW YORK • CHICHESTER • WEINHEIM • BRISBANE • SINGAPORE • TORONTO
Wiley Computer Publishing
Ed Roman
Scott Ambler
Tyler Jewell
Mastering Enterprise
JavaBeans
™
Second Edition
Publisher: Robert Ipsen
Editor: Robert M. Elliott
Developmental Editor: Emilie Herman
Managing Editor: John Atkins
Associate New Media Editor: Brian Snapp
Text Design & Composition: MacAllister Publishing Services, LLC
Designations used by companies to distinguish their products are often claimed as trade-
marks. In all instances where John Wiley & Sons, Inc., is aware of a claim, the product
names appear in initial capital or ALL CAPITAL LETTERS. Readers, however, should con-
tact the appropriate companies for more complete information regarding trademarks and
registration.
This book is printed on acid-free paper.
Copyright © 2002 by The Middleware Company. All rights reserved.
Published by John Wiley & Sons, Inc.
Published simultaneously in Canada.
No part of this publication may be reproduced, stored in a retrieval system or transmitted
in any form or by any means, electronic, mechanical, photocopying, recording, scanning or
otherwise, except as permitted under Sections 107 or 108 of the 1976 United States Copy-
right Act, without either the prior written permission of the Publisher, or authorization
through payment of the appropriate per-copy fee to the Copyright Clearance Center, 222
Rosewood Drive, Danvers, MA 01923, (978) 750-8400, fax (978) 750-4744. Requests to the
Publisher for permission should be addressed to the Permissions Department, John Wiley
& Sons, Inc., 605 Third Avenue, New York, NY 10158-0012, (212) 850-6011, fax (212) 850-
6008, E-Mail: permreq@wiley.com.
This publication is designed to provide accurate and authoritative information in regard to
the subject matter covered. It is sold with the understanding that the publisher is not
engaged in professional services. If professional advice or other expert assistance is
required, the services of a competent professional person should be sought.
Library of Congress Cataloging-in-Publication Data:
ISBN: 0-471-41711-4
Printed in the United States of America.
10 9 8 7 6 5 4 3 2 1
To my wonderful wife, Younhi.
—
Ed Roman
Acknowledgments xix
Preface xxi
Introduction xxv
About the Author xxxi
Part One Overview 1
Chapter 1 Overview 3
The Motivation for EJB 4
Divide and Conquer to the Extreme 5
Component Architectures 12
Introducing Enterprise JavaBeans 13
Why Java? 14
EJB as a Business Solution 14
The EJB Ecosystem 16
The Bean Provider 17
The Application Assembler 17
The EJB Deployer 18
The System Administrator 19
The Container and Server Provider 19
The Tool Vendors 20
Summary of Roles 20
The Java 2 Platform, Enterprise Edition (J2EE) 22
The J2EE Technologies 23
Summary 26
Chapter 2 EJB Fundamentals 29
Enterprise Beans 29
Types of Beans 30
Distributed Objects: The Foundation for EJB 32
Distributed Objects and Middleware 34
Explicit Middleware 34
Implicit Middleware 35
What Constitutes an Enterprise Bean? 37
The Enterprise Bean Class 37
CONTENTS
vii
The EJB Object 38
The Home Object 44
The Local Interfaces 46
Deployment Descriptors 50
Vendor-Specific Files 51
Ejb-Jar File 51
Summary of Terms 52
Summary 54
Chapter 3 Writing Your First Bean 55
How to Develop an EJB Component 55
The Remote Interface 57
The Local Interface 58
The Home Interface 58
The Local Home Interface 59
The Bean Class 62
The Deployment Descriptor 66
The Vendor-Specific Files 67
The Ejb-jar File 67
Deploying the Bean 68
The Optional EJB Client JAR file 68
Understanding How to Call Beans 69
Looking up a Home Object 70
Running the System 74
The Server-Side Output 75
The Client-Side Output 75
Implementing Component Interfaces 75
A Solution 76
Summary 77
Part Two The Triad of Beans 79
Chapter 4 Introduction to Session Beans 81
Session Bean Lifetime 81
Session Bean Subtypes 82
Stateful Session Beans 82
Stateless Session Beans 83
Special Characteristics of Stateful Session Beans 84
Achieving the Effect of Pooling with Stateful Beans 85
The Rules Governing Conversational State 86
Activation and Passivation Callbacks 87
CONTENTS
viii
剩余657页未读,继续阅读
资源评论
huyanlin
- 粉丝: 6
- 资源: 214
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功