Script to set NO_HEARTBEAT Flag
- by Koppar
The new plugin provides some flags to help debug the browser side VM. Below are the flags:
JPI_PLUGIN2_DEBUG=1JPI_PLUGIN2_VERBOSE=1
The above 2 provide tracing information
JPI_PLUGIN2_NO_HEARTBEAT = 1
This disables sending of heartbeat messages between browser side VM and the client JVM instance(s). This lets the client JVM stay independent of browser side VM. These are to be set as system environment variables. Many a times we are required to set them using scripts. Here is a small script to achieve the same:
-----------set_jpi_flags.vbs------------------------------------------
Set WSHShell = WScript.CreateObject("WScript.Shell")Set WshEnv = WshShell.Environment("USER")WshEnv("JPI_PLUGIN2_NO_HEARTBEAT") = "1"WshEnv("JPI_PLUGIN2_DEBUG") = "1"WshEnv("JPI_PLUGIN2_VERBOSE") = "1"WScript.Echo WshEnv("JPI_PLUGIN2_NO_HEARTBEAT") ---- displays the value of the NO_HEARTBEAT var
---------------------------------------------------------------------------