Developing virtual application patterns for IBM workload deployer with Rational application Developer
About this tutorial
This article is part fifth of a series of several sections that will introduce tools and development practices for developing and testing virtual application patterns on IBM workload Deployer in IBM Rational application Developer.
The previous articles in this series explore IBM pureapplication system and a variety of technologies and techniques to help you evaluate, prepare, and migrate your enterprise applications to virtual system mode. When you perform an evaluation of an existing enterprise application, or when you design a new application, you may decide to use virtual application Mode rather than virtual system mode.
Note: All features of IBM Rational application Developer that can be used with IBM workload Deployer can also be used with IBM Pureapplication System.
Developing virtual application patterns is not just about connecting components such as enterprise applications, WEB applications, OSGi applications, and databases. It also requires the use of languages and tools familiar to general software developers to implement the business logic of these components. For example, the business logic of a WEB application component might include Java classes, OSGi bundles, HTML pages, JavaScript functions, and CSS style sheets. These are the types of artifacts that software developers edit, run, and test in their daily work. Transitioning to a virtual application pattern should not interfere with the day-to-day work of a developer.
IBM Rational application Developer for WebSphere Software incorporates a variety of tools that combine code authoring guidelines with guidelines for combining virtual application patterns.
In this tutorial, you will learn how to accomplish the following tasks:
Create and use the workload deployer server configuration.
Create a virtual application pattern and publish it to workload deployer.
The virtual application pattern in workload Deployer is captured in the Rational application Developer.
Maintain virtual Application Mode synchronization between the workload Deployer and the Rational application Developer.
Deploy virtual application Mode from Rational application Developer.
Detach and delete the virtual application mode from the workload deployer.
Export and Import virtual application mode.
Handles the workload Deployer tool preferences.
Prerequisite
This tutorial is written for Rational application Developer V8.0.4 and IBM workload Deployer V3.1. You must be able to use workload Deployer V3.1 or its later version, and at least one environment configuration file must be defined. Your workload Deployer user account requires the following permissions. To check permissions, select System > usersfrom the workload Deployer Dashboard, and then locate and select your user account. Dashboards show the characteristics of your user account, including your permissions, which are allowed and do not allow you to perform activities. After you select a user account, you should confirm that the list has at least the following permissions and select them.
Permissions:
Deploying patterns in the Cloud
Create a new pattern
Cloud Management (read-only view)
Device Management (read-only view)
Audit (read-only view)
System Requirements
You must install the Rational application Developer V8.0.4 or its later version, and the following characteristics should appear in installation Manager (as shown in Figure 1):
WEB Development Tools
Ajax, Dojo Toolkit, and HTML development tools
JSP and servlet development tools
Java EE and WEB services development tools
OSGi Development Tools
WebSphere Application Server Development
WebSphere Application Server Version 7.0
WebSphere application Server V7.0 Development tools
Tools for developing applications without having to install servers locally
Note: If you have WebSphere application Server V7.0 installed locally, you can skip this feature.
IBM Workload Deployer Development tools
Scalability Features
Plug-in development environment (PDE)
Figure 1. The necessary characteristics
Study time
This tutorial takes approximately 3 hours of study time.
1th part. Entry
Note: All resources in this tutorial are available through the Rational Application Developer Information Center.
Start Rational application Developer in a new workspace, and then import the OSGi Hello World and Ajax Hello World samples into your workspace.
Start Rational Application Developer
Start Rational application Developer. For example, in Windows select Start > Programs > IBM Software Delivery Platform > Rational application Developer 8.0 > Rational application Developer.
In the Workspace field of the Workspace Launcher dialog box, enter the path name for the new workspace and click OK.
If the Welcome view is displayed, close it.
Import OSGi Hello World sample
This sample demonstrates a basic OSGi application. Later in this tutorial, you will use the sample to implement a component of the application pattern.
From the Rational application Developer main Menu, select Help > Help Contentsto open the Help window.
In the Contents of the Help window, expand and select the Samples > OSGi > OSGi HelloWorld.
In the resulting sample information page, select Import the sample.
Wait a little while to show the Import Wizard. Accept the default values all, and then click Finish.
If you see the Open Associated Perspective dialog box asking if you want to switch to the Java EE perspective, click No.
In Enterprise Explorer, confirm that the following items have been added to your workspace:
HelloWorld
Helloworld.app
Import Ajax Hello World sample
This sample is a basic Web application based on Dojo and Ajax technology. In the section later in this tutorial, the sample is used to implement a component of the application pattern.
In the Contents of the Help window, expand and select Samples > Web > Ajax HelloWorld.
In the resulting sample information page, select Import sample.
Note: The information page of this sample may indicate that "to use this sample, you must install the WEB 2.0 Feature Pack." Ignore this prompt.
Wait a little while to show the Import Wizard. Accept the default values all, click Finish.
If you see the Open Associated Perspective dialog box asking if you want to switch to a WEB perspective, click Yes. If this dialog box does not appear, make sure that the WEB perspective is turned on. If the Web perspective is not open, select Open Perspective > Other, as shown in Figure 2, select the Web, and then click OK .
Figure 2. Open a WEB pivot chart