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
- Set
the server to run in debug mode from either the administrator
console or a command line:
- From the administrator
console:
- Log in to the administrator console: Click .
- Click Debugging
Service.
- 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"/>
- 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.