Task 4: Defining a Server Configuration in Rational Application Developer
|
PREVIOUS
NEXT
|
To run the Web application in Rational Application Developer, you need to define a Web server configuration. You can then debug the application in Rational Application Developer by running the server in Debug mode.
To define a server configuration in Rational Application Developer:
-
Make sure that you are using the WebSphere instance where you installed the Execution Unit (XU) and management console:
-
Select Window > Preferences.
-
Select Server > Installed Runtimes and check the WebSphere installlation path: in the list of Installed Server Runtime Environments, select
WebSphere 6.1 to view its installation path, displayed under the list of Installed server runtimes.
You can also confirm that this is the server on which you installed Rule Execution Server:
-
In the New Server Runtime wizard, select
WebSphere Application Server v6.1 and click Next.
-
In the Name field specify
JRules RES WebSphere Application Server v6.1. Browse to the installation directory of your WebSphere application server.
-
Click Finish. The new runtime is displayed in the Installed Server Runtime Environments list.
-
Click OK to close the Preferences window.
-
To define a new server configuration:
-
Select File > New > Other.
-
In the selection wizard, in the file tree open the folder Server and select Server.
-
Click Next.
-
In the New Server wizard, select
WebSphere v6.1 Server and specify the Server runtime where JRules Rule Execution Server was installed.
-
Click Next and Next again to keep the WebSphere Server default settings.
-
In the Add and Remove Projects page, select
JRulesApp and add it to the Configured projects list.
-
Click Finish. The new server configuration is added in the Servers view and is
Stopped.
-
To run it in debug mode, in the Servers view right-click the server and select Debug.
The console displays the log message that the server is starting. Startup may take a few minutes. Once it has started, the server
Status in the
Servers view changes to
Debugging and its
State is set to
Synchronized.
-
Check that the JRulesApp is deployed and started when the server is started by right-clicking the server in the Servers view and selecting Run administrative console to open the WebSphere console.
It may take a few minutes for the console to open.
-
In the Integrated Solutions Console, select Applications > Enterprise Applications to view the applications installed.
Next: Task 5: Running and Debugging Your Web Application with Rational Application Developer