ILOG JRules User Guide > Executing Rules > Getting Started > Tutorial: Creating a Web Application to Invoke JRules on IBM Rational Application Developer > Task 4: Defining a Server Configuration in Rational Application Developer

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:

  1. Make sure that you are using the WebSphere instance where you installed the Execution Unit (XU) and management console:
    1. Select Window > Preferences.
    2. 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.
    3. In the New Server Runtime wizard, select WebSphere Application Server v6.1 and click Next.
    4. In the Name field specify JRules RES WebSphere Application Server v6.1. Browse to the installation directory of your WebSphere application server.
    5. Click Finish. The new runtime is displayed in the Installed Server Runtime Environments list.
  2. Click OK to close the Preferences window.
  3. To define a new server configuration:
    1. Select File > New > Other.
    2. In the selection wizard, in the file tree open the folder Server and select Server.
    3. Click Next.
    4. In the New Server wizard, select WebSphere v6.1 Server and specify the Server runtime where JRules Rule Execution Server was installed.
    5. Click Next and Next again to keep the WebSphere Server default settings.
    6. In the Add and Remove Projects page, select JRulesApp and add it to the Configured projects list.
    7. Click Finish. The new server configuration is added in the Servers view and is Stopped.
  4. To run it in debug mode, in the Servers view right-click the server and select Debug.
  5. images/RAD15.png
    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.
  6. 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.
  7. It may take a few minutes for the console to open.
    images/RAD16.png
  8. In the Integrated Solutions Console, select Applications > Enterprise Applications to view the applications installed.

images/arrow_next.gif Next: Task 5: Running and Debugging Your Web Application with Rational Application Developer