Writing Java in an agent
Procedure
Results
For information about creating an agent, see Creating an agent.
Note: The Agent Properties box is new with
Release 6.
Viewing output from a Java agent
About this task
You can review output from a Java agent that is running locally in the Java Debug Console. To activate the console, choose Tools - Show Java Debug Console. To clear output from the window, click Clear.
If a Java agent is running on a server, the Java Debug Console output is redirected to a server log file.
Adding resource, class, or archive files to an agent
Procedure
- Click Edit Project.
- From the Browse menu, choose the filing system for the resources you want to import.
- If using the Local File System, enter the desired path in the Base directory box.
- Optional: Select the appropriate check box for Show file types. The default file type is All.
- Select the files you want to include as a resource and click Add/Replace File(s). To select all of the files in the base directory and all of its subdirectories, click Add/Replace All. To remove a file, or group of files from the Current Agent Files column, select the file(s) and click Delete.
- Put the files in the proper order in the Current Agent Files column by clicking Reorder Up or Reorder Down to move files up or down, or by dragging files into place. You can move files one at a time, or in groups.
Including a script library on the class path
Procedure
- Click Edit Project.
- Choose Shared Java Libraries from the Browse menu.
- Choose the desired database from the options in the Database box.
- Select the script library to add to the class path.
- Click Add/Replace File(s).
Results
Note: The Database box is new with Release 6.