Documentation Archive Developer
Search
PATH  Documentation > WebObjects 4.5 > Deploying WebObjects Applications

   

Recording a Session

When a WebObjects application is launched in recording mode, it saves each request and response made to a recording file (which has an extension of .rec ). You specify the path designating this file with the -WORecordingPath flag, which also serves as a switch to turn on recording. The application automatically appends the .rec extension to the given filename and creates a directory, if one doesn't exist, with the given path.

To run an application in recording mode:

  1. Start the application on a command line similar to the following:
  2. myApplication -WOAutoOpenInBrowser NO -WORecordingPath /tmp/TestMyApp/tape1

    This command creates the file /tmp/TestMyApp/tape1.rec .

  3. Using a web browser, run a session of your WebObjects application.
  4. You might want to record what you believe to be a typical session, or you might want to record a session that puts a maximum load on your application. For example, you may want to record a session that performs as many database fetches as possible. As you run the application, the WebObjects recording adaptor writes each request and response to the recording file.

    Keep in mind that all request and responses are saved to disk, so it's recommended that only one user (that is, one session) access the application while recording is underway. You can later play back a recorded session multiple times to simulate more users.

  5. Stop the application to stop recording

© 1999 Apple Computer, Inc. – (Last Updated 25 August 99)