About J2EE Design Patterns
The J2EE design patterns pioneered by Sun Microsystems are a set of best
practices for solving recurring design problems. Patterns are ready-made
solutions that can be adapted to different problems, and leverage the
experience of successful J2EE developers.
JDeveloper can help you implement the following J2EE design patterns in
your EJB applications:
MVC - The MVC pattern divides an application into
three parts, the Model, View, and Controller. The model represents the
business services of the application, the view is the portion of the
application that the client accesses, the controller controls the
flows and actions of the application and provides seamless interaction
between the model and view. The MVC pattern is automatically
implemented if you choose a Web Application template in your
workspace. For more information, see
Developing a Web-based EJB Application.
Session Facade - The session facade pattern contains
and centralizes complex interactions between lower-level EJBs (often
entity beans). It provides a single interface for the business
services of your application. To create a session facade, see
Implementing the Session Facade Pattern.
Data Transfer Object - The data transfer object (DTO)
design pattern provides better maintainability by separating usecases
from the object model, allows for reuse of entity beans across
different applications, and increases performance when the attributes
from multiple entity beans can be passed to the client with a single
call. For more information, see
Generating Data Transfer Objects.
Business Delegate - The business delegate pattern
decouples clients and business services, hiding the underlying
implementation details of the business service. The business delegate
pattern is implemented by the data control, which is represented in
JDeveloper by the Data Control Palette. For more information, see
About the Data Control Palette.
Developing a Web-based EJB Application
Implementing the Session Facade Pattern
Generating Data Transfer Objects
About Developing EJB Applications Using JDeveloper
Developing Enterprise JavaBean Applications
Copyright © 1997, 2004, Oracle.
All rights reserved.