|
YOUR FEEDBACK
Did you read today's front page stories & breaking news?
SYS-CON.TV |
TOP THREE LINKS YOU MUST CLICK ON Workshop The New BEA WebLogic Workshop 8.1
The New BEA WebLogic Workshop 8.1
By: Carl Sjogreen
Mar. 4, 2003 12:00 AM
The initial focus of Weblogic Workshop was on Web services applications, but the core mission of the Workshop team has always been to deliver unprecedented productivity building enterprise-class applications. Many of the innovations introduced in the first version, such as visual designers, controls to simplify access to resources, and declarative annotations in Java code, apply to many applications, not just Web services. In this new release of Workshop, BEA has dramatically expanded the kinds of applications you can build within the Workshop environment, and significantly enhanced the basic capabilities of the Workshop IDE. Workshop 8.1 will be available in two editions: WebLogic Workshop Application Developer Edition and WebLogic Workshop Platform Edition. WLW Application Developer Edition includes the basic features targeted at application developers and supports building Web services, Web applications, and custom controls. WLW Platform Edition includes additional extensions to the IDE and runtime framework that let you build portal applications and workflows in conjunction with our Integration and Portal Server products. This article introduces the new features in WebLogic Workshop Application Developer Edition, and the core features of Workshop that are shared across the other BEA WebLogic Platform products.
Based on customer feedback, we focused our efforts around five major initiatives:
Unified Development Experience for the BEA Platform
Unified Architecture The Workshop IDE is a Swing-based Java development tool that provides many of the capabilities developers have come to expect from a development environment - great debugging, source editing, project management features, etc. Moreover, the Workshop IDE provides visual editors and designers to enable a drag-and-drop development experience for most applications. The IDE's principal mission in life is to create files containing application logic that can then be executed by the runtime framework. The Workshop runtime framework is a standard J2EE application that runs on top of WebLogic server. The Workshop runtime is responsible for handling the details of compilation, deployment, test harness generation, etc. The framework automates all the plumbing details and complex programming of building a J2EE application. Developers work with simple Java classes, and the framework automatically generates standard EJB components, message queues, databases, etc. This notion of using annotations in Java code to specify additional capabilities is being standardized via the Java Community Process in JSR 175. The platform development experience is converging around both the design time and runtime components of the architecture. In the IDE, the tools to build portals and business processes are now fully integrated within the Workshop development environment. Common windows in the IDE that manage your project's files and folders, palettes that list available controls, and common gestures are shared across designers for each of the products. All designers share the familiar "design" and "source" views of the application, and feature full two-way editing so that changes made in one view are immediately reflected in the other. The Workshop runtime supports the business logic developed for these applications, and generates a common set of J2EE components for applications and controls that are automatically deployed to WebLogic server. Most important, however, it provides a unified programming model across the application types.
Programming Model A programming model is the "programmer's UI" - the way a developer builds an application and how he or she interacts with the development environment. What APIs are available? What is the architecture and the process for constructing an application? What are the basic components, and how do I interact with them? In Workshop, the programming model is based on the notion of controls - simple components that have methods, events, and properties with a visual representation in the design view - and annotated Java code that lets you declaratively specify behavior and focus on handling events and calling methods, instead of writing complex object-oriented infrastructure code. This lets developers focus on writing the application logic that is important to them - the code that really builds the application - and lets the framework handle the details of the plumbing. The Workshop programming model was introduced in Workshop 7 with Java Web Service (JWS) files and controls. Controls enabled you to easily connect to databases, message queues, and EJB components without having to learn the details of the J2EE APIs, and configure settings by setting properties (instead of making API calls). Similarly, when building an asynchronous Web service, instead of writing the code to handle message correlation and state management manually each time, you could simply set a property on a service and the Workshop framework would automatically take care of these details. With Workshop 8.1, applications - whether they are Web services, Web applications, portals, or workflows - share a common process of assembling controls that encapsulate business logic or resources with additional code, workflow logic, personalization information, etc. All platform products share the notion of simple Java classes with declarative properties as the primary way application logic is built. This level of integration delivers tremendous value - much more than just having all the products use the same tool. With a common application model shared across all products, controls can be leveraged across application types; common paradigms are used for accessing databases, Web services, etc. Moreover, skills learned in building one type of application can be leveraged to learn new products. This shared programming model, supported by the runtime framework and exposed via the IDE, is a major enabling factor for the 10x productivity gain that Workshop delivers.
Do for Web Applications What Workshop 7 Did for Web Services For those of you familiar with the Struts framework, you'll find this approach very familiar - in fact, Pageflow files are actually compiled into a set of Struts classes and the Struts runtime is responsible for the execution of the completed application. This enables developers to take advantage of a simplified programming model and rich IDE support, but still build cross-platform applications that run on the open-source Struts framework.
Pageflow Pageflows can also leverage controls to access prepackaged business logic, read data from a database, invoke a Web service, or call any other available control. In fact, IDE wizards can automatically construct a Pageflow and set of JSP pages on top of any control to immediately create an application that performs simple CRUD (Create, Read, Update, Delete)-style operations on a database or invokes a Web service. These pages and the navigation flow can then be further customized and extended into a complete application.
JSP Editing and Databinding
Enable the Development of Custom Controls Controls can use other built-in or custom controls (shown on the right) in infinite levels of nesting so it becomes very easy to repackage and reuse these components. Control authors can also specify custom properties for their control via a simple XML syntax that are immediately supported within the IDE property editor. For example, a control that accesses an enterprise application might have a username and password property, or properties to configure the interaction with that system. Once controls have been built, they can be packaged as redistributable .jar files and easily added to other projects within your organization, or distributed externally. Controls will automatically appear on the palette of available controls as soon as the .jar file is installed. Advanced control authors can even build custom property editors and wizards that appear within the IDE to automate control setup. More information on these advanced control features can be found in the Control Developer Kit distributed with WebLogic Workshop.
Continue and Expand Leadership in Web Services Addressing the security and reliability concerns about Web services is crucial to enterprise adoption. To meet this need, Workshop now has full support for the WS-Security specification for message-level security (digital signatures and encryption) and has added a set of properties to the JWS file format to easily support declarative role-based security that leverages the underlying WebLogic Server. In addition, Workshop now supports "exactly once" messaging, which ensures that even over protocols like HTTP messages are reliably delivered once and only once to the recipient. Reliable messaging is exposed as a property that can be set on a message. One of the major design goals of Workshop 7 was to enable the development of loosely coupled Web services. To BEA, just having XML on the wire isn't loosely coupled enough - you need a mechanism that enables easy mapping between specific XML Schemas and Java objects so that both the XML and Java code can change independently without breaking users of your Web service or requiring major coding changes. We solved this problem with a simple, declarative mapping language. In Workshop 8.1, we've moved to XQuery as the standard language for binding XML to Java code and now provide a complete visual editor for performing these mappings. This makes it drop-dead simple to build a Web service from a set of messages (defined either as XML Schemas or example documents) and then map fields into individual Java parameters (see Figure 3). In other cases, however, fully decoupling XML from Java code using a transformation might be overkill. Sometimes it's easier just to access information from the XML directly, or save it away and potentially perform a transformation later. To enable this scenario, Workshop has introduced XML Beans - a unique new technology that dramatically increases the productivity of accessing XML from Java. Traditionally, developers have had to choose between low-level APIs such as SAX or DOM that enable direct access to XML but are tedious to work with, and Java binding solutions such as JAXB that provide a convenient set of Java interfaces but lose structural information from the original XML. XML Beans provide the best of both worlds. Using an efficient representation of the original XML document, XML Beans provide a simple cursor-based API for direct navigation through an XML document, an XQuery interface for retrieving information, and a set of Java class "views" on the underlying XML data. Given an XML Schema description, the XML Beans engine automatically generates a set of Java types that enable read-and-write access to the XML. What's different here is that XML Beans are based on XML Schema from the ground up, so there is no schema that cannot be bound to Java types (other solutions support about 50% of schema) and the fact that these Java classes are simply views on the underlying XML. No data is ever lost (even things like comments!) because the original XML is always retained. To use XML Beans, simply add a schema file to your Workshop project, and all the Java types will automatically be generated.
Dramatically Improve Basic IDE Functionality
Basic IDE Windowing
Debugging
New Project Model
Source Editing Features
Standards
Conclusion
Get it Today! BEA WEBLOGIC LATEST STORIES
SUBSCRIBE TO THE WORLD'S MOST POWERFUL NEWSLETTERS SUBSCRIBE TO OUR RSS FEEDS & GET YOUR SYS-CON NEWS LIVE!
|
SYS-CON FEATURED WHITEPAPERS BREAKING NEWS FROM THE WIRES
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||