IBM RAD
© 2008 IBM Corporation
Vikas ManoriaIT Specialist – IBM Academic [email protected]
Section - 5) Running Applications
IBM AI - RAD
Section 5 - Section 5 - Running Applications (9%)Running Applications (9%)
Use WebSphere Application Server to run Use WebSphere Application Server to run J2EE applications J2EE applications
Create and configure data sources Create and configure data sources Add and remove projects from the server Add and remove projects from the server Run stand-alone Java applicationsRun stand-alone Java applications
IBM AI - RAD
Deploying and Testing in WebSphere V6.1 Deployment, testing, and
administration is identical for all V6.1 Servers- Test environment- Separate BASE or ND
environments
Configuration through administration console
IBM Rational Application Developer
WebSphere Application Server V6.1
WebSphere Application Server V6.1
Stand-alone Installation
Cell
Node
WAS 6.1
WAS 6.1
Node Agent
Network Deployment (ND)J2EE EnterpriseApplication
Properties
ComponentsComponentsResources
Node
WAS 6.1
WAS 6.1
Node Agent
Deployment Manager
IBM AI - RAD
Creating a New Server (1 of 2)
In Rational Application Developer, create a new server in the Servers view.
Create a new profile with the Profile Management tool.
IBM AI - RAD
Creating a New Server (2 of 2)
Select the profile from the drop-down list
IBM AI - RAD
Adding Applications to the Server
Adding projects to a server creates a relationship between the project and the server- A project is published after you add the project, you add it using the Add
and Remove projects menu item- Rational Application Developer publishes the application to the server
when you start the server from the Servers view- You can manually publish any projects you have added by selecting the
Publish to the server icon in the Servers view toolbar
IBM AI - RAD
Considerations for Adding Applications
The actual location of application binaries depends on publishing settings:- Run server with resources within the workspace
Certain types of changes you make to applications are automatically applied A server has orphaned applications if a workspace with applications was
deleted
- Run server with resources on server Changes to applications must be published in order to take effect
IBM AI - RAD
Editing Server Resource Settings (1 of 2)
1
2
3
IBM AI - RAD
Editing Server Resource Settings (2 of 2)1
2
4
3
IBM AI - RAD
Controlling Servers in the Servers View With a server selected in the Servers view:
- Start the server in one of three modes Start to run applications normally Debug to step through application execution Profile to monitor application performance
Console view displays server log and error messages Double-click a server to edit its configuration
Start server in Debug
mode
Start server in Profiling
mode
Start server in Normal
mode
Restart the
server
Stop the
server
Publish projects to server
IBM AI - RAD
Examining Server Status
The Servers view displays the current status of all the servers. The Status column indicates whether or not a server has been started. The following lists the possible server status:
StartingStarted in
debug modeStopping
StartedStarted in
profile modeStopped
IBM AI - RAD
Web Application Deployment in WebSphere Deployment, Testing, and Administration is identical for all WebSphere v6.1
servers- Test Environment- Separate BASE or Network Deployment (ND) Environment
Applications can also be exported and installed through the Admin console or wsadmin
The Admin console can be accessed through the server in the Rational Application Developer Servers view
IBM AI - RAD
Administrative Console Overview
IBM AI - RAD
Administrative Console Navigation TreeChoose an action:
- Help with Activities- Administer application and Web servers- Administer and install applications- Administer resource providers (JDBC, JMS)- Enable and configure security- Configure virtual hosts, variables- Administer the Administration Console- Administer Users and Groups- Configure Performance Monitoring- Configure Logs and Tracing- Configure SOA elements- Configure UDDI nodes
IBM AI - RAD
Applications: Console Options
IBM AI - RAD
Applications: Installation (1 of 2)
Specify the application (EAR file) or stand-alone module (JAR or WAR file) to install- If installing a Web module, specify the context root
IBM AI - RAD
Applications: Installation (2 of 2)
Remaining steps involve- Selecting installation
options- Mapping modules to
servers- Mapping virtual hosts for
web modules
Once the application has been installed, you must save the master configuration
IBM AI - RAD
Resources: JDBC DataSources
In addition to General Properties, you can set Connection pool properties using this form
IBM AI - RAD
Guided Activities: Connecting to a Database This guided activity leads you through a set of steps to
configure database access for an application using JDBC Datasources.
IBM AI - RAD
Checkpoint
1.When is the Rational Agent Controller required to be installed?
2.How can you add projects to a server directly from Rational Application Developer?
3.How can you remove them?
4.The universal test client will not start; what might be the problem?
5.How many server profiles can be created?
6.What is the purpose of the TCP/IP monitor?
IBM AI - RAD
Checkpoint answers
1.For profiling applications.
2.Via the Add and Remove Projects dialog, server context menu, or by choosing Run/Debug/Profile on server from the Project Explorer context menu.
3.Same as adding, or through the administrative console. Note: Simply deleting the project in the workbench will not remove it from the server.
4.In the Server Overview dialog, Enable universal test client might be unchecked. [There are several other answers, of course! This is the one that was given in this unit]
5.As many as required.
6.To intercepts and relays data on a particular port.
IBM AI - RAD
Lab
Create Server InstanceAdd/remove projectsConfigure ServerStart/stop ServerServer Console
IBM AI - RAD
Japanese
Hebrew
Thank You
English
MerciFrench
Russian
DankeGerman
GrazieItalian
GraciasSpanish
Obrigado Portuguese
Arabic
Simplified Chinese
Traditional Chinese
Thai
Korean