| ILOG JRules User Guide > Running and Debugging > Getting Started > Tutorial: Debugging a Remote Rule Execution Server Application > Task 3: Preparing for a Remote Debug Session in Rule Studio |
Task 3: Preparing for a Remote Debug Session in Rule Studio |
PREVIOUS NEXT |
In this task you will enable debugging on the ruleset and the application server, and embed and deploy the loan validation application with an SSP client.
You enable debugging on the loanvalidationrules ruleset through the Rule Execution Server Console.
To enable debugging:
loanvalidation RuleApp in the RuleApps table.
loanvalidationrules in the ruleset table.
To debug a ruleset more easily than using an application that comprises multiple pages, the Rule Execution Server Console enables you to execute a ruleset using an SSP client.
In order to accomplish this execution, the SSP client must be embedded inside the loan validation application. Under the task3/<applicationserver> directories, the loan validation EAR contains the SSP client.
The loan validation EAR file can be deployed to an application server in many different ways. We suggest that you to refer to the application server documentation for a clear understanding of the different options
To deploy the EAR if you use JBoss installed with JRules:
You can also deploy the EAR on a version of JBoss not supplied with JRules.
To deploy the EAR on a version of JBoss not supplied with JRules:
loan-validation-JBOSS40.ear file provided in the task3/jboss40 directory.
<JBOSS_HOME>/server/default/deploy.
You can also deploy the EAR file on Sun AS 82, WebLogic, WebSphere or Oracle 10g. The procedure is the same in each case.
To deploy the EAR file on Sun AS 82, WebLogic, WebSphere or Oracle 10g:
How you enable debugging in the application server depends on the application server you are using.
To enable debugging if JBoss was installed with JRules:
If you are using a JBoss server not installed with JRules, you set the environment variable.
To enable debugging if JBoss was not installed with JRules:
JBOSS_HOME/bin directory and set the environment variable JAVA_OPTS as follows:
run.[bat|sh].
You can also deploy the EAR on application servers other than JBoss.
You enable debugging on a Sun AS 82 server using the Admin Console.
To enable debugging on Sun AS 82:
You enable debugging on an Oracle10g server by setting the environment variable.
To enable debugging on Oracle10g:
You enable debugging on a WebLogic 9.2 or 10 server by adding a debug variable to the startWeblogic.[cmd|sh] script.
To enable debugging on WebLogic 9.2 and 10:
DEBUG_OPTS to the startWeblogic.[cmd|sh] script as follows:
set DEBUG_OPTS=-Xdebug -Xrunjdwp:transport=dt_socket,address=7777,server=y,suspend=y -Dilog.rules.engine.sequential.debug=true
%JAVA_HOME%/bin/java and preferably before the other options.
set DEBUG_OPTS=-Xdebug -Xnoagent -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=7777 -Dilog.rules.engine.sequential.debug=true
"%JAVA_HOME%\bin\java" %DEBUG_OPTS% %JAVA_VM% %MEM_ARGS% %JAVA_OPTIONS%-Dweblogic.Name=%SERVER_NAME% -Dweblogic.management.username=%WLS_USER% -Dweblogic.management.password=%WLS_PW% -Dweblogic.management.server=%ADMIN_URL% -Dweblogic.ProductionModeEnabled=%PRODUCTION_MODE% -Djava.security.policy="%WL_HOME%\server\lib\weblogic.policy" weblogic.Server
You enable debugging on a WebSphere 6.1 server using the administration console.
To enable debugging on WebSphere 6.1:
Next: Task 4: Debugging a Remote Ruleset in Rule Studio
| Copyright © 1987-2008 ILOG S.A. All rights reserved. Legal terms. Documentation homepage. | PREVIOUS NEXT |