J2EE Tools improvements New Page Designer functions New Web Site Designer functions New JDBC error log.. Support for JDK 1.4.1.[r]
Trang 1© Copyright IBM Corporation 2004 Course materials may not be reproduced in whole or in part without the prior written permission of IBM.
Welcome to:
3.1
What’s New in WebSphere Studio v5.1.1
Trang 2© Copyright IBM Corporation 2004
Discuss Installation and migration
Describe new features
JDK 1.4.1
J2EE improvements
Web Services changes
List improvement for WebSphere Studio v5.1.1
Unit Objectives
Trang 3© Copyright IBM Corporation 2004
If WebSphere Studio v5.1 is installed, v5.1.1 will automatically be installed over the existing installation
The install will remove the v5.1 installation before installing v5.1.1.Corresponding Third Party plug-ins for v5.1.1 will need to be
installed
Upgrade to Remote Agent Controller v5.1.1 recommended
Install
Trang 4© Copyright IBM Corporation 2004
Windows(R) XP Professional with Service Pack 1
Windows 2000 Professional with Service Pack 2 or higher
Windows NT(R) Workstation or Server Version 4.0 with Service Pack 6a or higher
Red Hat, Version 7.2
Red Hat, Version 8.0
SuSE, Version 7.2
SuSE, Version 8.1
Install - Software Requirements
Trang 5© Copyright IBM Corporation 2004
Migration Guide is included
With Studio Application Developer Version 5.1.1, you can migrate code from 5.1 automatically
Migrate code manually
VisualAge for Java
WebSphere Studio "Classic"
WebSphere Studio Application Developer Version 4.0.x
WebSphere Studio Application Developer Version 5 Beta, Early Availability, or General Availability
WebSphere Studio Application Developer Version 5.0.1
WebSphere Studio Application Developer Version 5.1
Migration
Trang 6© Copyright IBM Corporation 2004
WebSphere v5.1 Test Environment, others optionalJavaServer Faces support
Struts tags in the Page Designer palette
Application Templates Wizard
J2EE Tools improvements
New Page Designer functions
New Web Site Designer functions
New JDBC error log
Support for JDK 1.4.1
Performance improvements
What’s New in WebSphere Studio
Trang 7© Copyright IBM Corporation 2004
Optional Runtime Environments
Trang 8© Copyright IBM Corporation 2004
JSF and WDO tooling is in beta state in 5.1.1
The components are labeled beta in the UI on the paletteGUI Framework for developing J2EE application
Basis for Rapid Application Development
Enable more developers to build dynamic pages
Requires reduced set of Java skills
Many built-in functions
Java Server Faces (1 of 2)
Trang 9© Copyright IBM Corporation 2004
What are JavaServer Faces?
JavaServer Faces technology is a framework for building user
interfaces for web applications
JavaServer Faces technology includes:
A set of APIs for: representing UI components and managing their state, handling events and input validation, defining page navigation, and supporting internationalization and accessibility
A JavaServer Pages (JSP) custom tag library for expressing a
JavaServer Faces interface within a JSP page
Java Server Faces (2 of 2)
Trang 10© Copyright IBM Corporation 2004
EJB Client JAR support
Server Targeting for J2EE projects
EJB snippet support
EJB Reference wizard support
The EJB Bottom Up mapping scenario even when enterprise beans already exist
J2EE Tools Improvements
Trang 11© Copyright IBM Corporation 2004
New Web Site Designer functions
You can now use the Object Palette to insert Web Site Designer objects
You can now specify a Servlet URL
Struts tags in the Page Designer palette
For Struts tools, the Struts tags are now part of the Page Designer palette
New JDBC error log
When a catalog import is launched from the DB Servers pane in the Data Perspective, the following error dialog may be displayed upon completion
Minor Improvements/Enhancements
Trang 12© Copyright IBM Corporation 2004
Web Services
New Seoul Discovery Dialog
WSDK v5.1- Command line tools have a refresh from WSAD 5.1WSDL2Client command enables you to build client program from wsdl (all you need is location of wsdl file)
The WSDL can be local or on the Web
WS-I in 5.1 you could set for whole workspace In 5.1.1 you can set preference per project level
Default is warning
Update in Deployment Descriptor Model
See Editor
Trang 13© Copyright IBM Corporation 2004
New functions and changes included in Java SDK 1.4.1
Applications can make use of new Java SDK 1.4.1 APIs
For complete API and other new functions reference, refer to Java 2 SDK 1.4.1 specification:
http://java.sun.com/j2se/1.4.1/docs/relnotes/features.html
JDK/SDK 1.4.1 New Features
Trang 14© Copyright IBM Corporation 2004
Why ?
Some JDK 1.4.1 APIs changed –added methods that conflict with existing WebSphere APIs with the same method name and input signature, but with a different return type
Exception Handling – Changes to Throwable interface
Throwable added method StackTraceElement[] getStackTrace()
Conflicted with
com.ibm.websphere.servlet.error.ServletErrorReport class
(implements Throwable) java.lang.String getStackTrace() method
Solution – change the name from getStackTrace to
getStackTraceAsString() in ServletErrorReport class
JDK 1.4.1 Enablement –
WebSphere API Changes
Trang 15© Copyright IBM Corporation 2004
JDK 1.4.1 – XML Parser Compatibility
JDK 1.4.1 includes JAX API and parser/transformer implementationJDK 1.4 shipped with WebSphere will have Xerces 4.2.2 - JAXP 1.2, SAX 2.01, DOM 2
WebSphere v5.1 will remove the Xerces/Xalan parser that was shipped in WebSphere v5.0.X, since JDK now includes the JAXP implementation
If you bundle your own XML parser within your application, it will continue to work
Using the PARENT_LAST class loader setting in the Application Server, so it uses the user supplied XML parser
If you were using WebSphere supplied Parser in v5.0.2 and before, then it will default to the JDK XML Parser
If you are using directly Apache Xerces APIs, some of these APIs have changed – For example – type casting has changed
If you are using JAXP APIs, then this will not affect you
Best practice – use JAXP APIs for XML processing instead of the direct Apache Xerces APIs
Trang 16© Copyright IBM Corporation 2004
Following Security APIs/functions are now in JDK 1.4.1Java Cryptography Extension (JCE)
Java Secure Socket Extension (JSSE)
Java Authentication and Authorization Service (JAAS)Certification Path APIs (Certpath)
Java Generic Security Services API (JGSS)
PKCS and S/MIME security features
JDK 1.4.1 Security Changes
Trang 17© Copyright IBM Corporation 2004
Three new tools to support Kerberos Tickets:
kinit helps users obtain Kerberos tickets
klist helps users list Kerberos tickets
ktab helps users manage Kerberos tickets
Klist is a command-line tool to list entries in credential cache and key tab
Ktab is a command-line tool to help the user manage entries in the key table
Security Tools - Kerberos
Trang 18© Copyright IBM Corporation 2004
JDBC 3.0
Not required for J2EE 1.3 – Part of J2EE 1.4
WebSphere v5.1 ignores the new JDBC 3.0 APIs, if you use WebSphere Connection Manager
ORB / EJB Container
POA (Portable Object Adapter) will not be supported in v5.1
We will continue to ship IBM ORB in non-IBM JDKs, as before
JDK 1.4.1 – JDBC 3.0 Support
Trang 19© Copyright IBM Corporation 2004
An Internet Domain Naming System (DNS) service provider has been added that enables applications to read data stored in the DNS
The JNDI Lightweight Directory Access Protocol (LDAP) service provider has security enhancements
Enables applications to establish secure sessions over existing LDAP connections
Enables applications to use different authentication protocols The JNDI CORBA Object Services (COS) naming service provider now supports Interoperable Naming Service (INS)
Java Naming and Directory Interface (JNDI)
Trang 20© Copyright IBM Corporation 2004
Trang 21© Copyright IBM Corporation 2004
New focus architecture
New full-screen exclusive mode API supports high performance
graphics by suspending the screen
Headless support is now enabled that indicates whether a display,
keyboard, and mouse can be supported in a graphics environmentMouse Wheel support
Now 64-bit compliant
AWT
Trang 22© Copyright IBM Corporation 2004
New Spinner
Allows a component user to select a number or a value by cycling
through a sequence of values using a tiny pair of up/down arrow buttons
New formatted text field
Component allows formatting of dates, numbers, and strings
New drag and drop architecture
Provides seamless drag and drop support between components
Progress bar
Uses constant animation to show that a time-consuming operation is occurring
Scrollable tabs
Now supported in tabbed pane component
Popup and popup factory
Classes exposed and made public
New Focus architecture
Fully integrated into Swing
Swing
Trang 23© Copyright IBM Corporation 2004
The JavaTM Logging APIs, introduced in package java.util.logging The core package includes support for delivering
Plain text
XML-formatted logs
Java Logging APIs
Trang 24© Copyright IBM Corporation 2004
Full Speed Debugging Support
HotSwap allows a class to be updated while under the control of a debugger
Instance Filters
Support For Debugging Other Languages
VMDeathRequests
Java Debugging
Trang 25© Copyright IBM Corporation 2004
Support for a class-defined readObjectNoData method
Important bug fixes
RMI
Trang 26© Copyright IBM Corporation 2004
Trang 27© Copyright IBM Corporation 2004
Summary of New Features and Enhancements
XML Processing
New I/O APIs
Security
Java 2D technology
Image I/O Framework
Java Print Service
AWT
Swing
Drag and Drop
Logging API
Java Web Start Product
Long-term Persistence of JavaBeans Components
JDBC 3.0 API
Assertion Facility
Preference API
Chained Exception Facility
Endorsed Standards Override Mechanism
Java Virtual Machines Performance
Networking Support, including IPv6 RMI
Serialization Java Naming and Directory Interface (JNDI) CORBA, Java IDL, and RMI-IIOP
Java Platform Debugger Architecture Internationalization
Java Plug-in Product Collections Framework Accessibility
Regular Expressions Math
Reflection Java Native Interface Tools and Utilities
Trang 28© Copyright IBM Corporation 2004
New Rapid Application Development Tools
Support of Java Server Faces
Build and manage Web site development rather than page
development
Numerous of additional improvements and enhancements present in WSAD v5.1.1 and JDK 1.4.1
Unit Summary