Open access to source code and tool provider community.. Start the WebSphere Studio Application Developer. Start -> Programs -> IBM WebSphere Studio -> Application Developer 5.1[r]
Trang 1© Copyright IBM Corporation 2004
Welcome to:
WebSphere Studio Application Developer
Overview
Trang 2After completing this unit, you should be able to:
Describe role-based development
Describe the WebSphere Studio family of tools
State the role of WebSphere Studio Workbench in the WebSphere Studio tools
Describe basic features of WebSphere Studio Application
Developer
Describe the major sets of tooling provided by WebSphere Studio Application Developer
Unit Objectives
Trang 3Page Layout and Content
JavaBeans EJBs JavaBeans EJBs Servlets, JSPs, JavaBeans HTML, JSPs, MIME Types
Operational Environment
Configuration Data, Site Usage Metrics
Tool
Role
Enterprise
Integrator Provider Bean Application Assembler Producer Page Master Web
WebSphere Studio Tooling
Developing Web Applications requires more than just
writing Java code
Roles-based Development
Trang 4Development Environment Goals
Create a new Development Environment that will:
Be based on a new open, highly pluggable platform
Unified by a new tooling platform
Provide multilevel vendor integration
Provide a role-based development model where the assets are the focus, not the tool
Provide a common repository solution for all assets and toolsProvide rapid support for new standards and technologies
For example, Web Services
Trang 5IBM WebSphere Studio Family
Provide a sturdy Web/Java development platform in the industryOpen tooling and run-time support
Open programming model
Provide in-depth Enterprise connectivity
EJB/J2EE Tooling
Enterprise Connectivity/Enterprise Access Builders
Provide integrated end-to-end development
Built-in Unit Test Environment
Incremental compilation
Flexible debugging support
Provide a Team Development solution
Integrated version control
Trang 6Family Contents
WebSphere Studio Products (V5) :
WebSphere Studio Application Developer (includes all of Site Developer functionality
Focused on development of Web Services, JSPs, Servlets, XML and J2EE and database applications in a team environment
WebSphere Studio Enterprise Developer
Includes all of Application Developer functionality
Focused on Enterprise Integration using the J2EE Connector
Architecture
Supports integrated development of z/OS based CICS, IMS and batch applications
Trang 7WebSphere Studio Workbench
Workbench is:
Not a tool, not a product, not for sale
A portable, universal tool platform and integration technologyThe basis for an open source project
Workbench has:
Frameworks and services that enable tool builders to focus on tooling building
Tools to help tool builders build tools
Java Development Tools (JDT)
Plug-in Development Environment (PDE)
Trang 8WebSphere Studio Workbench Rationale
End-users (Web application developers)
No more on-site integration, tools just work together
Common, easy-to-use interface
Common code, project, file management system
Same tool platform regardless of development role
Same look and feel regardless of tool vendor
Tool Builders
Seamless integration and interoperability with IBM AD tools and WebSphere Software Platform
Seamless integration with other Workbench tools
Enterprise ready, off the shelf
Globalization, distributed debug, Team, SCM
Easy construction and deployment platform for tools
Open access to source code and tool provider community
Trang 9Start the WebSphere Studio Application Developer
Start -> Programs -> IBM WebSphere Studio -> Application Developer 5.1 Workbench opens when you launch Application Developer
Within the workbench open the perspectives, views, and editors
WebSphere Studio Application Developer
Trang 11Java: to develop and test Java programs
Server: to configure, run, and manage test servers
Debug: to control debug flow, see variables, and so forth
Trang 12A view displays specialized information For example:
Bookmarks view displays all bookmarks in workbench
A view might appear alone in a single pane, or several views might
be stacked within a single tabbed pane
Views can be undocked/docked from the main workbench window.Information updates on a view are saved immediately
View toolbars apply only to the particular view in which they appear
Trang 13An editor is used to edit or browse a resource
Modifications made in the editor follow an open-save-close life cycle
An editor can contribute to the Workbench menu bar
Examples:
Java Source Editor
Web Deployment Descriptor Editor
Web Site Configuration Editor
JSP Editor
WSDL Editor
Trang 14Online Help
To learn more on Workbench, select Help ->Help Contents)
Select Application Developer information
Select Getting Started
Select Workbench Fundamentals and Tutorial: Workbench Basics
Trang 15Cheat Sheets
Guide developer through an application development process
Sequence of documented steps with relevant documentation
Displayed in workbench pane
Task-related tools are automatically launched or have launch icons
in cheat sheet
Launched via Help Cheat Sheets
Trang 16Application Developer Design Points
Performance
Customizable Perspectives
Promote role-based development (Web Developer, Java
Developer, DBA, and so forth)
Reduces the learning curve
Perspectives use same project artifacts regardless of perspective being used
Pluggable development environment
Java and ActiveX plug-in support
IBM and ISVs use same plug-in architecture to extend the
Workbench
Support for automated builds
Apache.org "Ant" support
Command-line EJB generation
Trang 17Performance / Trace Tooling
Team Development Tooling
Web Services Tooling
Trang 18Java IDE (1 of 3)
Ships with SDK 1.3
Pluggable JRE Support
Defined at project and workbench level
Hot Method Replace
Dynamically replace Java classes during debug
Enabled when Application Server V5 runs in debug modeJava Snippet Support (Scrapbook)
Task Sheet (All Problems Page)
Code Assist
Refactoring Support
Rename/move support for method/class/package
Fix all dependencies for renamed element
With and without preview
Trang 19Java IDE (2 of 3)
Faster IDE
Smart Compilation
No lengthy compile/build/run steps
Pluggable Framework, in-placetool launchingRunning class/code with errors
Precise reference searching
Text and Java-based
JDI-based debugger for local/remote debuggingRun code with errors
Multiple test environments can be configuredJ2EE WAR/EAR Deployment
Trang 20Java IDE (3 of 3)
UML Class Diagram Editing and Visualization
Support for Java classes and EJB components
Diagrams generated from existing classes/componentsNew diagrams built and used to develop corresponding component
Typical Class Diagram Editor operations:
Create classes, packages, and interfaces
Create extends and implements relationships
Create methods and fields
Refactor components
Add EJB relationships
Add EJBQL queries
Add CMP fields to a primary key
UML Class Diagrams can be exported
Trang 21EAR and WEB Deployment Descriptor Editors
Forms-based (no need to directly edit XML)
Source view also available
Struts Support
Web Diagram visual editor for application design
Trang 22J2EE Tooling (2 of 2)
Connector Projects
J2EE Connector Architecture (JCA) based
EJB Test Client – Universal Test Client
HTML-based
J2EE programming model
Built-in JNDI registry Browser
Unit Test Environment for J2EE
WebSphere Application Server V4 or V5 and Apache TomcatCreate multiple projects with different Server
configurations/instances
Allows for versioning of unit test environment
Share Unit Test Environment Configuration across developer
Trang 23Portlet Tooling
Wizards to create Portlet Application
Management of Deployment Descriptors
web.xml
portlet.xml
Multiple portlets per application
Integrated development and test environment
Full use of debugger
Test on remote server or integrated unit test environmentExport deployable WAR file
Trang 24Connect to and view existing relational database objects
Online and off-line support for working with databases
Metadata generated as XMI
SQL Query Builder and SQL Wizards
Visually construct SQL statements
SELECT, INSERT, UPDATE, DELETE supported
Metadata generated as XMI
SQL/XML mapping
Trang 25Create / Build / Debug SQLJ
Workbench runs SQLJ translator and builds Java files
Trang 26Web Tooling (1 of 2)
Web Site Designer
Provide site-level views of Web project
Graphical and detail tabular views of site structure
Trang 27View HTML/JSP and all links reference in page
Parsing and link management updates link when resources are renamed or moved
Jakarta JSP Taglibs
Specify in project Properties or New…Project to include
Available: Standard Tag Library (JSTL), accessing JSP objects, database access, internationalization, utilities
Trang 28Visual tooling for working with DTDs
Create DTDs from existing documents
Generate an XML Schema from a DTD
Generate JavaBeans for creating/manipulating XML documents Generate an HTML form from a DTD
XML Schema Editor
Visual tooling for working with an XML Schema
Trang 29XML Tooling (2 of 3)
XSL Editor
Edit/create and validate XSL
XSL Debug and Transformation Tool
Trace XSL transformation
Examine relationships between the result node, the template rule, and the source node
XML to/from Relational Databases
Generate XML, XSL, XSD from an SQL Query
RDB/XML Mapping Editor
Map columns in a table to elements and attributes in an XML document
Generate a Database Access Definition (DAD) script to
compose/decompose XML documents to/from a database
DAD is used with DB2 XML Extender
Trang 30XML Tooling (3 of 3)
XPath Expressions Wizard
Create XPath expressions
XML to XML Mapping Editor
Map one on more source XML files to a single target
Trang 31Performance/Trace Tooling
Built-in tooling helps developer isolate and fix performance problems with their Web application
Profiling and Logging Perspective allows developers to:
Attach to local/remote agents for capturing performance dataJVM Monitoring
Trang 33Web Services Tooling (1 of 2)
Tools to Construct Web Services:
Generate Java client proxy to Web Services
Maintain Web Services Description Language (WSDL) files
(WSDL Editor)
Create new WSDL files
Create ports, port types, messages, bindings, operations, types within WSDL files
Validate new and existing WSDL files
Trang 34Web Services Tooling (2 of 2)
Tools to Construct Web Services:
Trang 35Web Services Definition Language (WSDL) 1.1
Web Servers Interoperability (WS-I) Basic Profile 1.0Apache SOAP 2.3
XML DTD 1.0 10/2000 Revision
XML Namespaces 1/99 Version
XML Schema 5/2001 Version
HTML 4.01 (other levels should work)
CSS2 (PageDesigner displays a subset)
Trang 36Name some of the roles in Web application development
What is the name of the Application Developer perspective you would usually use for EJB development?
Compare and contrast View, Editor, and Perspective
Name the SCM tools that ship with Application Developer
Trang 37Unit Summary
Having completed this unit, you should be able to see:
The concept of Role-Based Development
The WebSphere Studio Family
The WebSphere Studio Workbench in the context of WebSphere Studio products
Basic features of WebSphere Studio Application Developer
Major tooling sets provided by WebSphere Studio Application Developer