Preparing an AS/400 environment for OLT
Before tracing and debugging your AS/400 application, you must configure the
WebSphere Application Server environment to enable tracing and debugging.
Configuring the WebSphere Application Server on the AS/400 consists of the
following steps:
- Start the WebSphere Application Server Administrative Console.
- Select the Topology view. The Topology view is the
default view.
- Expand the host name.
- Select the application server where you want to enable tracing and
debugging.
- Stop the application server.
- Select Debug from the pages at right.
- Check the Debug enabled flag. This allows OLT to start
the debugger when you step into a debuggable method in your client
application from the OLT viewer.
- Check the Object Level Tracing enabled flag. This enables
OLT.
- Enter the fully-qualified name or TCP/IP address of the machine running
your OLT server in the OLT server hostname field.
- Enter the port where the OLT server listens for connecting OLT clients in
the OLT server Port field. The default port is for the OLT
server is 2102.
- Optional: Enter the path that the debugger uses to search
for your application's source code in the Source Path
field.
- Select the General page.
- Add the -classpath option to the Command line arguments
field:
-classpath /qibm/userdata/webasadv/myuserid/mydirectory
where /qibm/userdata/webasadv/myuserid/mydirectory is the root
directory containing the debuggable class files.
For example if you want to debug the com.mycompany.mybeans.AccountBean
class, and the debuggable version of the AccountBean class resides in
directory /QIBM/UserData/WebASadv/enterprisebeans/com/mycompany/mybeans,
specify -classpath /QIBM/UserData/WebASadv/enterprisebeans in
the Command line arguments field for the application
server.
- If your source and class files are in different locations, add the
-Ddebugsourcepath option to the Command line arguments
field. For example, if your source for the
com.mycompany.mybeans.AccountBean class resides in directory /QIBM/UserData/WebASadv/enterprisebeans/mysource/com/mycompany/mybeans,
specify -Ddebugsourcepath
/QIBM/UserData/WebASadv/enterprisebeans/mysource in the Command
line arguments field for the application server.
- Click Apply.
Once you have completed the steps above, you can start OLT on the workstation
where you want to trace and debug your application.
Once you have started OLT, start your application server.