Graphic Design
  Home arrow Graphic Design arrow Page 4 - WebLogic Workshop, WebLogic Platform, and ...
Dev Articles Forums 
ADO.NET  
Apache  
ASP  
ASP.NET  
C#  
C++  
ColdFusion  
COM/COM+  
Delphi-Kylix  
Design Usability  
Development Cycles  
DHTML  
Embedded Tools  
Flash  
Graphic Design  
HTML  
IIS  
Interviews  
Java  
JavaScript  
MySQL  
Oracle  
Photoshop  
PHP  
Reviews  
Ruby-on-Rails  
SQL  
SQL Server  
Style Sheets  
VB.Net  
Visual Basic  
Web Authoring  
Web Services  
Web Standards  
XML  
Dedicated Servers  
Moblin 
JMSL Numerical Library 
IBM® developerWorks 
Sun Developer Network 
Weekly Newsletter
 
Developer Updates  
Free Website Content 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Write For Us Get Paid 
Request Media Kit
Contact Us 
Site Map 
Privacy Policy 
Support 
 USERNAME
 
 PASSWORD
 
 
  >>> SIGN UP!  
  Lost Password? 
GRAPHIC DESIGN

WebLogic Workshop, WebLogic Platform, and the J2EE Landscape
By: Albert J. Saganich, Jr.
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 4 stars4 stars4 stars4 stars4 stars / 8
    2004-07-14

    Table of Contents:
  • WebLogic Workshop, WebLogic Platform, and the J2EE Landscape
  • What is WebLogic Workshop?
  • WebLogic Workshop and J2EE
  • Model-View-Controller (MVC) Pattern
  • Creating a Sample Workshop Application with WebLogic Platform

  • Rate this Article: Poor Best 
      ADD THIS ARTICLE TO:
      Del.ici.ous Digg
      Blink Simpy
      Google Spurl
      Y! MyWeb Furl
    Email Me Similar Content When Posted
    Add Developer Shed Article Feed To Your Site
    Email Article To Friend
    Print Version Of Article
    PDF Version Of Article
     
     
    ADVERTISEMENT


    WebLogic Workshop, WebLogic Platform, and the J2EE Landscape - Model-View-Controller (MVC) Pattern


    (Page 4 of 5 )

    J2EE provides a component-based architecture for developing an enterprise application quickly and efficiently. This component architecture divides application logic into manageable units. WebLogic Workshop builds Web applications based on the Model-View-Controller (MVC) pattern, which helps separate an application's activities into functional areas. MVC also enforces security on the data—the Model part of MVC—which means that data shouldn't be allowed to change unless it's processed through a business process. Controllers are objects responsible for routing requests to the appropriate business component to process the data and forward it to the View component for display. Workshop supports the MVC pattern by implementing a component-based architecture.

    The View Component

    In J2EE, JSPs are used as the View component. JSPs are components used to generate dynamic content as a response to a client request. The Java code for generating the dynamic presentation is written within tags, which are the standard tags provided by the JSP specification or custom tags you have developed.

    Workshop enables you to build these JSPs through GUI-based editors and also provides a set of custom tags, known as the NetUI tag library. This library contains tags for most of the popular features used when developing JSPs, such as creating links, buttons, tables, and so on. Without this library, you would have to write a considerable amount of code to build these elements on your own, but with the NetUI library, these tasks are quick and straightforward.

    When you create a JSP in Workshop, you don't have to enter the code for using these tags. Workshop offers a number of ease-of-use features, such as name completion and tag palettes. You can simply drag a tag from one of the palettes to the JSP.

    The available NETUI tags and details on how to use them are explained in Chapter 7, "Using the NetUI Tag Library Toolbox to Develop Sophisticated JSPs."

    The Controller Component

    In J2EE, servlets act as Controllers that route requests to the appropriate Model component. Normally, you must hard-code the application flow in these components to create navigation logic, which makes it difficult to adapt to change.

    Workshop introduces a framework called Page Flow that acts as a Controller in the MVC model. A Page Flow is an easy-to-use GUI-based tool for connecting pages with snippets of navigation code known as actions. Actions are small bits of decision logic built visually through drag-and-drop that can access underlying Model data to control page navigation. Application flow is stored as annotations, and the code is generated at runtime. Using Page Flows, discussed in more depth in Chapter 4, "Developing with Page Flow," makes it easy to adapt to change.

    The Model Component

    In J2EE, EJBs are used for processing data and form the Model component of MVC. There are four kinds of EJBs:

    • Stateless session beans are short-lived synchronous beans that do not maintain any client information. All instances of the same stateless session bean are identical.

    • Stateful session beans are synchronous and maintain some client information, but only for a temporary period. This information is not stored persistently and is lost when the bean instance is destroyed.

    • An entity bean represents persistent data. The data is saved before the bean instance is destroyed.

    • Message-driven beans (MDBs) are stateless beans that allow business components to receive messages asynchronously.

    For Model component support, WebLogic Workshop introduces a new type of component known as a control. Controls are completely integrated into the Workshop environment and have a predefined set of methods and properties that specify the business logic. Two types of controls can be used in Workshop:

    • Built-in controls, such as rowset controls, have predefined methods for creating, reading, updating, and deleting records from a database.

    • Custom controls can be created to leverage complex business logic across different applications.

    The Workshop Framework compiles and runs these controls as EJBs. Chapters 6, "Introduction to WebLogic Workshop Controls and Components," and 8, "Advanced Control Development," examine the different types of controls that can be used in Workshop for processing data.

    Applications built with Workshop follow the J2EE standards for packaging. All View and Controller components are packaged as a Web Application Archive (WAR) file, and all Model components are packaged as a Java Archive (JAR) file. The entire application is deployed as an Enterprise Archive (EAR) file. Chapter 3, "WebLogic Workshop Application Development Basics," explains the directory structure Workshop uses when building applications.

    SamsThis chapter is from BEA WebLogic Workshop 8.1, by Albert J. Saganich, Jr., et al. (Sams, 2004, ISBN: 0672326221). Check it out at your favorite bookstore today.

    Buy this book now.

    More Graphic Design Articles
    More By Albert J. Saganich, Jr.


     

    GRAPHIC DESIGN ARTICLES

    - Building Corner Effects with Transparent Bac...
    - 3D Graphics Technology: VRML Part I - Introd...
    - Creating Visual Effects
    - Web Page Design Overview
    - Creating Artistic Photographs
    - Working with Tools in Paint Shop Pro 8
    - Using HTML Quickform for Form Processing
    - Introduction to Adobe FrameMaker
    - WebLogic Workshop, WebLogic Platform, and th...
    - Planning the Site
    - Working with Web Services
    - WebLogic Workshop Application Development Ba...
    - Scanning Images for Web Use
    - Web Graphics Overview
    - The Pen is Mightier than the Brush Tool







    © 2003-2008 by Developer Shed. All rights reserved. DS Cluster 2 hosted by Hostway