How to Use IBM Rational Software Architect Designer for WebSphere
IBM Rational Software Architect Designer for WebSphere is a powerful tool that helps you design, model and develop applications and services for the IBM WebSphere platform. In this article, you will learn how to use this tool to create a simple web application and deploy it to a WebSphere server. You will also learn how to use some of the features and benefits of this tool, such as abstraction, communication, collaboration, compliance and risk management.
Prerequisites
To follow this tutorial, you will need the following:
- An IBM ID and password to download the trial version of IBM Rational Software Architect Designer for WebSphere from here.
- A license key to activate the trial version. You can request a license key from here.
- A computer with Windows, Linux or OS X operating system that meets the system requirements for installing the tool.
- A WebSphere Application Server installation that is compatible with the tool. You can download a trial version of WebSphere Application Server from here.
Installation
To install IBM Rational Software Architect Designer for WebSphere, follow these steps:
- Download the compressed files from the download page and extract them into the same directory.
- Run the launchpad.exe (Windows), launchpad.sh (Linux) or launchpad.app (OS X) file to start the installation wizard.
- Follow the instructions on the wizard to select the installation directory, language, features and components.
- Enter your license key when prompted.
- Complete the installation and restart your computer if required.
Creating a web application
To create a simple web application using IBM Rational Software Architect Designer for WebSphere, follow these steps:
- Launch the tool and select File > New > Project.
- Select Web > Dynamic Web Project and click Next.
- Enter a name for your project, such as HelloWorld, and click Next.
- Select WebSphere Application Server as the target runtime and click Next.
- Select JavaServer Faces v2.0 Project as the configuration and click Finish.
- In the Project Explorer view, expand your project and double-click on faces-config.xml to open it in the editor.
- In the editor, switch to the Design tab and drag a View component from the palette to the canvas.
- Double-click on the View component and enter index.xhtml as its name.
- In the Properties view, select General > Managed Bean Scope and choose Request from the drop-down list.
- Drag an Output Text component from the palette to the View component on the canvas.
- In the Properties view, select General > Value and enter Hello World! in the text box.
- Save your changes by pressing Ctrl+S or clicking File > Save.
Deploying the web application
To deploy your web application to a WebSphere server, follow these steps:
- In the Project Explorer view, right-click on your project and select Run As > Run on Server.
- Select WebSphere Application Server as the server type and click Next.
- Select an existing server or create a new one by clicking New > WebSphere Application Server v8.5 or later.
- Enter your server details, such as host name, port number, user name and password, and click Finish.
- Click Next and then Finish to start the server and deploy your application.
- A browser window will open with your application URL. You should see Hello World! displayed on the page.
d8cbe59d7d