Setting up a workspace

Before you use the sample policy governor or write custom policies, set up your workspace for developing, testing, and debugging. To develop and test a custom policy, you must have a fully configured instance of the product.

Before you begin

To add the policy governor class, you must be a repository administrator. If you are not a repository administrator, contact your repository administrator and ask that the policy governor class to be added to your repository configuration.

Procedure

  1. Set the server to run in debug mode from either the administrator console or a command line:
    • From the administrator console:
      1. Log in to the administrator console: Click Servers > Application Servers > your server.
      2. Click Debugging Service.
      3. Click Enable service at server startup and note the port number.
    • On a command line, type the following text:
      D:\eWAS\profiles\profile1\config\cells\etkCell\nodes\etkNode\servers\server1\server.xml 			 
      <services xmi:type="debugservice:DebugService" xmi:id="DebugService_1228856053015" enable="true" jvmDebugPort="7778" jvmDebugArgs="-Djava.compiler=NONE -Xdebug -Xnoagent -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=7778" BSFDebugPort="4444" BSFLoggingLevel="0"/>
  2. Restart the server.

What to do next

Create a policy governor so that you can use the custom policy review API to write policies. For instructions, see Developing custom policies.

Feedback