Graphic Design
  Home arrow Graphic Design arrow Page 7 - WebLogic Workshop Application Development ...
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  
Mobile Linux 
App Generation ROI 
IBM® developerWorks 
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 Application Development Basics
By: Albert J. Saganich, Jr.
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: 4 stars4 stars4 stars4 stars4 stars / 23
    2004-06-22

    Table of Contents:
  • WebLogic Workshop Application Development Basics
  • Page Flow Fundamentals
  • Portals
  • Creating Applications and Projects
  • Workshop Applications Breakdown
  • Accessing and Exposing Data via Controls
  • Creating Simple Rowset Controls

  • 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 Application Development Basics - Creating Simple Rowset Controls


    (Page 7 of 7 )

    Rowset controls are the heart of any database application. There are, in fact, two types of database access controls. Database controls, which are similar to rowset controls, require all data access to be coded by hand. Rowset controls go a step further than database controls, in that they provide a core set of access methods, based on java.sql.RowSets, for accessing data. Developers are free to add functionality, but a set of core methods are supplied.

    To create a rowset control, select a folder where the control will be created and follow these steps:

    1. Select File, New, Other File Types from the Workshop menu (see Figure 3.13).

    2. (Same as step A.)

    3. Select Business Logic in the left pane.

    4. Select RowSet Control in the right pane (see Figure 13), and click Create.

    saganich

    Figure 13 - Creating a rowset control.

    1. Enter the control variable name.

    2. Select an appropriate datasource.

    3. Select the methods to create, either Query and Update a Database Table (for traditional tables) or Query a View or Table (no update methods generated). The remainder of the steps for adding a rowset control are shown in Figure 14.

    saganich

    Figure 14 - Selecting methods, columns, and a primary key source in the RowSet Control Wizard.

    1. Select the schema and table name, and click Next.

    2. Select the columns to include, and click Next.

    3. Select the primary key mechanism, and click Create.

    When you're finished, a new rowset control is created in the folder you selected. The new control can be used to access the table from a Page Flow or another control.

    Deploying and Configuring Applications

    To this point, you've been working with applications without understanding how they can be built or deployed. Whenever you make a change to an application, WebLogic Workshop automatically synchronizes with the running instance of WebLogic Workshop.

    Building Applications

    Before an application can be run, it must be compiled. WebLogic Workshop can build application components automatically or on demand. In the Workshop environment, building an application is more then just compilation. Because applications contain annotations, these annotations must be reviewed, the components compiled, supporting classes created and configured, and more. WebLogic Workshop applications can be in development or production modes. In development mode, all components are compiled automatically as they change. In production mode, applications or components must be built using the command-line wlwbuild.cmd scripts or Workshop's Build, Application, Build, EAR or Build, Project, project name menus. You can change an application's or project's properties by selecting the application or project, right-clicking, and then choosing Properties. Figure 15 shows the Application Properties dialog box.

    saganich

    Figure 15 - The Application Properties dialog box for the chapter3 application.

    Mapping Applications and Projects to Directories

    WebLogic Workshop maps directly to an EAR file. Figure 3.16 shows the directory structure of the chapter3 sample Workshop Web application. Table 3.1 maps WebLogic Workshop folders to the directories on disk.

    saganich

    Figure 3.16 - Application directory structure.

    Table 3.1 Directory to Application Mapping

    Directory or File

    Workshop Application Equivalent and Contents

    chapter3Webapp.work

    Workshop application configuration file. Do not edit or delete this file.

    .workshop

    Files and classes generated by Workshop. Not displayed.

    APP-INF\lib

    Location for all project JARs. Maps to Application\lib. Any JAR files added to this directory are added to the application's class path. Schema and other projects that produce JAR files place them here.

    chapter3Web

    Actual application contents. Maps to chapter3\chapter3Web\.

    chapter3Web\WEB-INF

    Maps to chapter3\chapter3web\WEB-INF. All tag libraries and Web application deployment descriptors are located here.

    Schemas

    Schema project. Maps to chapter3\Schemas.

    META-INF

    Maps to chapter3\modules. Contains all application-level deployment descriptors managed by WebLogic Workshop.


    In Brief

    In this chapter, you learned that

    • Workshop supports the creation of several application types, including Web applications, Schema, portals, and business processes.

    • The WebLogic Workshop programming model is the underlying basis for all Workshop applications. Its constituent parts (Page Flow, controls, and so on) are based on Struts and the MVC pattern and are used to model application functionality.

    • Applications and projects are the heart of WebLogic Workshop development. Projects are used to contain Page Flows, controls, and other components of an application and map directly to EAR format on disk.

    • One of the most common types of controls is the rowset control, which can be used to add data, query for data, traverse rows of data, and delete data.

    samsThis chapter is from BEA WebLogic Workshop 8.1, by Albert J. Saganich, Jr., et al. (Apress, 2004, ISBN: 0-672-32622-1). Check it out at your favorite bookstore today.
    Buy this book now.


    DISCLAIMER: The content provided in this article is not warranted or guaranteed by Developer Shed, Inc. The content provided is intended for entertainment and/or educational purposes in order to introduce to the reader key ideas, concepts, and/or product reviews. As such it is incumbent upon the reader to employ real-world tactics for security and implementation of best practices. We are not liable for any negative consequences that may result from implementing any information covered in our articles or tutorials. If this is a hardware review, it is not recommended to open and/or modify your hardware.

     

    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-2009 by Developer Shed. All rights reserved. DS Cluster 3 Hosted by Hostway
    For more Enterprise Application Development news, visit eWeek