Designing Enterprise Applications with the J2EE™ Platform, 2nd Edition
- By Inderjeet Singh, Beth Stearns, Mark Johnson, Enterprise Team, The
- Published Mar 25, 2002 by Prentice Hall. Part of the Java Series series.
- Copyright 2002
- Dimensions: 7-3/8x9-1/4
- Pages: 448
- Edition: 2nd
- Book
- ISBN-10: 0-201-78790-3
- ISBN-13: 978-0-201-78790-0
Register your product to gain access to bonus material or receive a coupon.
"The Java™ BluePrints Team has done it again. This book is an indispensable asset to all J2EE™ developers and should never be far from reach."
--John Crupi, coauthor of Core J2EE™ Patterns, Distinguished Engineer, Sun Java Center, Sun Microsystems, Inc.The Java 2 Platform, Enterprise Edition, offers developers a simplified, component-based approach to creating applications for intranets and the Internet.
As part of the highly regarded Java BluePrints program, Designing Enterprise Applications with the J2EE™ Platform, Second Edition, describes the key architectural and design issues in applications supported by the J2EE™ platform and offers practical guidelines for both architects and developers. It explores key J2EE platform features such as Java servlets, JavaServer Pages™, and Enterprise JavaBeans™ component models, as well as the JDBC™ API, Java Message Service API, and J2EE Connector Architecture. It also discusses security, deployment, transaction management, internationalization, and other important issues for today's applications.
Through code samples and a full e-commerce application example, this book provides concrete guidelines to mastering the J2EE platform. Highlights include:
- An introduction to the J2EE platform, the applications it supports, and the technologies it provides
- Discussions on how to design Web-based applications using Java servlet and JavaServer Pages technologies
- Architectural guidelines for designing Enterprise JavaBeans components for scalability, reliability, and performance
- How to connect J2EE applications to existing systems and applications using JDBC and J2EE Connector technologies
- Design motivations behind the widely used Java Pet Store demo application
- A glossary of J2EE and enterprise computing terminology
0201787903B03142002
Related Article
Taming Your Emu to Improve Application Performance
Web Resources
Click below for Web Resources related to this title:
Author Web Site
Online Sample Chapter
Designing and Implementing J2EE Clients
Index
Aaccess objects 189
data access objects 190
  aggregate objects 191
records 192
ACID properties 252
applet clients 61
applets 26
accessing a UserTransaction 38
transactions 260
application assembler tasks 206
application clients 19, 26, 60
accessing a UserTransaction 38
deployment 243
transactions 260
application scenarios 14
business-to-business 20
multitier 16
stand-alone client 18
Web-centric 19
archive files
EAR 207
EJB JAR 210
JAR 49
WAR 214, 222
ASCII 313
asynchronous messaging 154, 180-181, 183-185
point-to-point messaging 183
publish-subscribe messaging 183
auditing 307
authentication 40, 280
basic 41, 285
call patterns 292
changing identity 287
client certificate 41
configuration 285
context 280
  delegating 281
digest 41, 285
EIS resource 291
  application-managed 291
  container-managed 291
EJB tier 287
form-based 41, 285
  configuration 238
lazy 284
mechanisms 284
mutual 280, 285
role of references 293
scenarios 282
user 53
authenticators 280
authorization 40-41, 293
consistency across components 296
declarative versus programmatic 296
enterprise information systems 199
example 302
programmatic 295
auto-registration 293Bbasic authentication
See authentication, basic
bean-managed persistence 145
find methods 140
portability 149
when to use 149
bean-managed transaction demarcation
message-driven beans 155
browsers 54
download time 57
input 56
JavaScript validation 57
server communication 58
user interface 55
business delegate 351
business logic 130
business methods
implementation 139
in component interface 139
business objects 130
behavior 131
controlling access to 133
high availability 133
implemented by enterprise beans 135
maintaining state 132
modeling as entity beans 143-144
operating on shared data 132
participation in transactions 132
remote accessibility 133
requirements of 131-134
reusability 134
servicing multiple clients 133
structural attributes 131Ccaller principal 296
cardinality
of container-managed relationships 146
CCI
See Common Client Interface
character sets 313
8859 series 314
ASCII 313
encoding 314
Unicode 314
class files 49
client certificate authentication
See authentication, client certificate
client tier 7
client view 137
component interface 137
home interface 137
local view 137
remote view 137
clients
See also Java clients
applets 61
applications 60
browsers 54
  download time 57
  input 56
  JavaScript validation 57
  server communication 58
  user interface 55
conversational state 59, 69
cookie 59-60
data download 69
design guidelines 54
in distributed application 52
input validation logic 63
interfaces 51
MIDlets 61
network connections 52
  security 52
platform considerations 53
presentation logic 61
security 52
state 60
  within URL 59
types 51, 60
user authentication 53
user interface 62
code generation wizards 165
collation 320
command beans
access objects
  command beans 189
Common Client Interface 178
data integration 186
Common Secure Interoperability (CSIv2) protocol 288
component interface 137, 139
components 25
applets 26
application clients 26
designing presentation 325
EJB 28
enterprise beans 28, 135
packaging 201
portability 10
presentation 110
rich clients 26
Web 27
wireless clients 27
composite view 350
concurrency 272
concurrent access 143
confidentiality mechanisms 305
connection factory references 193
data source 197
elements of 194
mail session 232
res-auth 194
res-ref-name 194
connection pooling 179, 193
connections
closing 194
getConnection 194
guidelines for managing 193-195
sharing 195
  res-sharing-scope 195
Connector architecture 43
container-managed persistence 145
benefits 149
find methods 140
select methods 140
container-managed relationships 142, 146
fields 146
manipulation of 146
containers 26
applet
  APIs 31
application client 26
  APIs 31
EJB 30
  APIs 31
JSP 28
platform configuration 7
servlet 28
Web 28
  APIs 31
conversational state 151
managing with session beans 157
cookie 59-60, 122
create methods 140
omitting from entity bean 164
credentials 282DDAO 190
data
coarse-grained access 141
fine-grained access 142
in XML format 176
independence 149
persistent localized 332
procedural view of 153
records 192
synchronizatio
Preface
This book, now in its second edition, describes standard approaches to designing multitier enterprise applications with the Java™ 2 Platform, Enterprise Edition. This book, and the accompanying Java Pet Store sample application, are part of the successful Java BluePrints program created by Sun Microsystems with the introduction of the J2EE platform. This program has been used by thousands of application architects, developers, and students to attain better understanding of the programming model inherent in the J2EE platform.
This book and the Java BluePrints program don't provide information on how to use individual Java technologies to write applications--that's the role of the companion Java Tutorial program. Instead, Java BluePrints focuses on guidelines for application architecture, such as distributing J2EE application functionality across tiers and choosing among design options within each tier. This book assumes that the reader already has basic knowledge of the J2EE platform. We recommend that readers without this knowledge familiarize themselves with the J2EE Tutorial either before or while reading this volume. See "Related Information" later in the Preface for details.
This book describes the architecture and design principles employed in building J2EE applications, and explores of the specific approach adopted by the sample application. Striking a balance between specific details and broad principles is never easy. The hope behind this effort is that the principles presented here are both consistent with and a useful complement to the implementation provided by the sample applications documented in this book.
This book is intended primarily for system architects and enterprise application developers engaged in or considering a transition to the J2EE platform. It is also useful for product vendors interested in developing applications consistent with the J2EE standard.
Obtaining the Sample ApplicationYou can download the Java Pet Store sample application, version 1.3, which is described in this book, from:
http://java.sun.com/blueprints/code/The sample application requires a J2EE v1.3-compliant platform on which to run. You can download J2EE SDK™, which is a freely available implementation of that platform, from:
http://java.sun.com/j2ee/download.htmlRelated InformationPointers to J2EE documentation can be found at:
http://java.sun.com/j2ee/docs.htmlFor information on how to use the J2EE SDK to construct multitier enterprise applications, refer to The J2EE Tutorial, available at:
http://java.sun.com/j2ee/tutorial/The J2EE technologies cited in this book are described in their specifications:Java™ 2 Platform, Enterprise Edition Specification, Version 1.3 (J2EE specification). Available at http://java.sun.com/j2ee/download.html
Java™ 2 Platform, Standard Edition Specification, Version 1.3 (J2SE specification). Available at http://java.sun.com/j2se/1.3/docs/
Java™ Servlet Specification, Version 2.3 (Servlet specification). Available at http://java.sun.com/products/servlet/
JavaServer Pages™ Specification, Version 1.2 (JSP specification). Available at http://java.sun.com/products/jsp/
Enterprise JavaBeans™ Specification, Version 2.0 (EJB specification). Available at http://java.sun.com/products/ejb/
Java™ API for XML Processing Specification, Version 1.1 (JAXP specification). Available at http://java.sun.com/xml/jaxp/
J2EE™ Connector Architecture Specification, Version 1.0 (Connector specification). Available at http://java.sun.com/j2ee/connector/
JDBC™ API Specification, Version 2.0 (JDBC specification). Available at http://java.sun.com/products/jdbc/
JDBC™ Standard Extension API Specification, Version 2.0 (JDBC extension specification). Available at http://java.sun.com/products/jdbc/
Java™ Transaction API Specification, Version 1.0.1 (JTA specification). Available at http://java.sun.com/products/jta/
Java Naming and Directory Interface™ Specification, Version 1.2 (JNDI specification). Available at http://java.sun.com/products/jndi/
Java IDL. Available at http://java.sun.com/j2se/1.3/docs/guide/idl/
RMI over IIOP. Available at http://java.sun.com/products/rmi-iiop/
Java™ Message Service Specification, Version 1.0.2 (JMS specification). Available at http://java.sun.com/products/jms/
Java™ Authentication and Authorization Service Specification, Version 1.0 (JAAS specification). Available at http://java.sun.com/products/jaas/
JavaMail™ API Specification, Version 1.2 (JavaMail specification). Available at http://java.sun.com/products/javamail/
JavaBeans™ Activation Framework Specification, Version 1.0.1 (JAF specification). Available at http://java.sun.com/products/javabeans/glasgow/jaf.html
Typographic ConventionsTable 0.1 describes the typographic conventions used in this book.
Table 0.1 Typographic Conventions
| Typeface or Symbol | Meaning | Example |
| AaBbCc123 | The names of commands, files, and directories; interface, class, method, and deployment descriptor element names; programming language keywords | Edit the file Main.jsp. How to retrieve a UserTransaction object. Specify the resource-ref element. |
| AaBbCc123 | Variable name | The files are named XYZfile. |
| AaBbCc123 | Book titles, new words or terms, or words to be emphasized | Read Chapter 6 in User's Guide. These are called class options. You must be root to do this. |
0201787903P03252002
Table of Contents
Foreword.
Preface.
About the Authors.
1. Introduction.
2. J2EE Platform Technologies.
3. The Client Tier.
4. The Web Tier.
5. The Enterprise JavaBeans Tier.
6. Integrating with the Enterprise Information System Tier.
7. Packaging and Deployment.
8. Transaction Management.
9. Security.
10. J2EE Internationalization and Localization.
11. Architecture of the Sample Application.
Afterword.
Glossary.
Index. 0201787903T03252002
Downloadable Sample Chapter
Click below for Sample Chapter(s) related to this title:
Sample Chapter
3
This book includes Instant Online Access with
and free shipping!
Instant Online Access with Safari Books Online
With your book purchase you are entitled to free, instant online access to that book on Safari Books Online for 45 days. After you've completed your purchase, you will receive instructions on how to log into Safari Books Online. If you do not want to receive online access to the book, simply uncheck the box for Instant Online Access in your cart.
- Save more by becoming a member.
- Request an Instructor or Media review copy.
- Corporate, Academic, and Employee Purchases
- International Buying Options
Online access to books, videos, and tutorials from Addison Wesley, Prentice Hall, Cisco Press, IBM Press, O'Reilly Media and others - starting as low as $22.99. Learn more and start a free trial.



Account Sign In
View your cart