Enabling hot method replace for a WebSphere Application Server v5.x
If you want to make changes to your Java classes while you are debugging, you can set this preference by editing the server before you start it. The application or server does not need to be restarted for the changes to be recognized.
To enable hot method replace for a WebSphere Application Server v5.x test environment or server:
- In the Servers view, double-click your WebSphere Application Server v5.x to open the server editor.
- On the Overview page, select the Enable hot method replace in debug mode check box.
- Save and close the editor.
- Start the server in debug mode. When the server is started in debug mode, class file changes will be picked up by the server automatically.
Note:
- To debug a stand-alone application using hot method replace, use this products provided JRE found in x:\eclipse\jre, where x is the directory where this product is installed and specify -Xj9 as a VM argument.
- Hot-method replace cannot be used while profiling an application. When you profile an application, data related to the program's run-time behavior is collected and presented in both graphical and tabular views. Profiling enables you to see which operations take the most time and helps you to find and solve memory leaks. For more information, refer to the Profiling and logging documentation.
- When using hot method replace to debug servlets, the server will reload a method which is changed. It will not reload the class or reload and reinitialize the servlet.
- JSP debugging does not support hot method replace.
- When hot method replace is enabled, the JIT compiler is also enabled. The JIT compiler used when Hot-method replace is enabled, is much faster than when using normal debugging. The JAVA_COMPILER=NONE environment variable and system property -Djava.compiler=NONE to disable the JIT compiler will be ignored if hot method replace is enabled when debugging an application. When hot method replace is enabled, the -Xint option will disable the JIT compiler.
Parent topic
Configuring WebSphere Application Server v5.x