Book description
"The Java landscape is littered with libraries, tools, and
specifications. What's been lacking is the expertise to fuse them
into solutions to real-world problems. These patterns are the
intellectual mortar for J2EE software construction."
--John Vlissides, co-author of Design Patterns, the "Gang of
Four" book
"The authors of Core J2EE Patterns have harvested a really
useful set of patterns. They show how to apply these patterns and
how to refactor your system to take advantage of them. It's just
like having a team of experts sitting at your side."
--Grady Booch, Chief Scientist, Rational Software
Corporation
"The authors do a great job describing useful patterns for
application architectures. The section on refactoring is worth the
price of the entire book!"
--Craig McClanahan, Struts Lead Architect and Specification Lead
for JavaServer Faces
"Core J2EE Patterns is the gospel that should accompany every
J2EE application server...Built upon the in-the-trenches expertise
of its veteran architect authors, this volume unites the platform's
many technologies and APIs in a way that application architects can
use, and provides insightful answers to the whys, whens, and hows
of the J2EE platform."
--Sean Neville, JRun Enterprise Architect, Macromedia
Developers often confuse learning the technology with learning to design with the technology. In this book, senior architects from the Sun Java Center share their cumulative design experience on Java 2 Platform, Enterprise Edition (J2EE) technology.
The primary focus of the book is on patterns, best practices, design strategies, and proven solutions using the key J2EE technologies including JavaServer Pages(TM) (JSP(TM)), Servlets, Enterprise JavaBeans(TM) (EJB(TM)), and Java(TM) Message Service (JMS) APIs. The J2EE Pattern Catalog with 21 patterns and numerous strategies is presented to document and promote best practices for these technologies.
Core J2EE Patterns, Second Edition offers the following:
J2EE Pattern Catalog with 21 patterns--fully revised and newly documented patterns providing proven solutions for enterprise applications
Design strategies for the presentation tier, business tier, and integration tier
Coverage of servlets, JSP, EJB, JMS, and Web Services
J2EE technology bad practices
Refactorings to improve existing designs using patterns
Fully illustrated with UML diagrams
Extensive sample code for patterns, strategies, and refactorings
Table of contents
- Copyright
- Prentice Hall Core Series
- Foreword – Grady Booch
- Foreword – Martin Fowler
- Preface
-
1. Patterns and J2EE
- 1. Introduction
-
2. Presentation Tier Design Considerations and Bad Practices
- Presentation Tier Design Considerations
-
Presentation Tier Bad Practices
- Control Code in Multiple Views
- Exposing Presentation-Tier Data Structures to Business Tier
- Exposing Presentation-Tier Data Structures to Domain Objects
- Allowing Duplicate Form Submissions
- Exposing Sensitive Resources to Direct Client Access
- Assuming <jsp:setProperty> Will Reset Bean Properties
- Creating Fat Controllers
- Using Helpers as Scriplets
-
3. Business Tier Design Considerations and Bad Practices
- Business Tier Design Considerations
-
Business and Integration Tiers Bad Practices
- Mapping the Object Model Directly to the Entity Bean Model
- Mapping the Relational Model Directly to the Entity Bean Model
- Mapping Each Use Case to a Session Bean
- Exposing All Enterprise Bean Attributes via Getter/Setter Methods
- Embedding Service Lookup in Clients
- Using Entity Beans as Read-Only Objects
- Using Entity Beans as Fine-Grained Objects
- Storing Entire Entity Bean-Dependent Object Graph
- Exposing EJB-related Exceptions to Non-EJB Clients
- Using Entity Bean Finder Methods to Return a Large Results Set
- Client Aggregates Data from Business Components
- Using Enterprise Beans for Long-Lived Transactions
- Stateless Session Bean Reconstructs Conversational State for Each Invocation
- 4. J2EE Refactorings
-
2. J2EE Pattern Catalog
- 5. J2EE Patterns Overview
-
6. Presentation Tier Patterns
- Intercepting Filter
- Front Controller
- Context Object
- Application Controller
- View Helper
- Composite View
- Service to Worker
- Dispatcher View
-
7. Business Tier Patterns
- Business Delegate
- Service Locator
- Session Façade
- Application Service
- Business Object
- Composite Entity
- Transfer Object
- Transfer Object Assembler
- Value List Handler
- 8. Integration Tier Patterns
-
Epilogue
-
Web Worker Micro-Architecture
- Workflow Mini-Primer
- Web Worker Micro ArchitectureProblem
- Forces
-
Solution
- Structure
-
Participants and Responsibilities
- Action Adapter
- Interactions and Method Call Information
- Business Event, Command String, and Type Returned
- WorkflowCommand and WorkflowDelegate Actions
- Work Adapter Components
- Code for Work Adapter
- Interactions and HireEmployeeWA workItemAcquired() Information
- Refactoring Required for Web Application
- Refactorings for Workflow Event
- Consequences
-
Web Worker Micro-Architecture
- Bibliography
- The Apache Software License, Version 1.1
Product information
- Title: Core J2EE™ Patterns: Best Practices and Design Strategies, Second Edition
- Author(s):
- Release date: June 2003
- Publisher(s): Pearson
- ISBN: 9780131422469
You might also like
book
Core J2EE™ Patterns: Best Practices and Design Strategies
Over the last few years, Java 2 Platform, Enterprise Edition (J2EE) technology has emerged and matured …
article
Three Ways to Sell Value in B2B Markets
As customers face pressure to reduce costs while maintaining profitability, value-based selling (VBS) has become critical …
book
Just Java™ 2, Fifth Edition
Java programming language and basic packages Server-side libraries and enterprise development Networking, Beans, and collections GUI …
book
Private Banking: Building a Culture of Excellence
An insightful overview of the keys to world-class client service in the private banking sector As …