Record a Java serialization request
This section describes how to record the interaction between an existing Java client and the server.
- To record a Java Serialization request
- Change the Java client settings so that it uses NeoLoad as a proxy:
- hostname: host name or IP address of the machine running NeoLoad.
- port: the HTTP recording port used by NeoLoad, default is 8090. This setting may be changed in Preferences.
- For a Java applet application: No modifications are required to record Java serialization requests.
- For a Java application using JNLP: Configure the Java settings:
Open the Java settings in the Windows control panel.
Select the General tab, and click on the Network settings button.
Select Use proxy server and set the machine name as localhost and the NeoLoad proxy port (default is 8090)
Validate these settings and re-start your Java application before making a new recording.
- For a standalone Java application: Configure the http.proxyHost and http.proxyPort system properties.
For example, place the following code in your code:
System.setProperty("http.proxyHost", "localhost");
System.setProperty("http.proxyPort", "8090");or modify the command line:
java -Dhttp.proxyHost=localhost -Dhttp.proxyPort=8090 ...
- Launch NeoLoad.
- Begin a recording. Since a standalone Java application does not require a browser, it is recommended to clear the Launch browser check box. See Record a test scenario.
- Launch the Java client. If everything is working correctly, the HTTP requests sent by the Java application should be visible in NeoLoad.
- Stop recording.
Home