Script to set NO_HEARTBEAT Flag

Posted by Koppar on Oracle Blogs See other posts from Oracle Blogs or by Koppar
Published on Wed, 26 Sep 2012 09:57:19 +0000 Indexed on 2012/09/26 15:44 UTC
Read the original article Hit count: 388

Filed under:

The new plugin provides some flags to help debug the browser side VM. Below are the flags:

JPI_PLUGIN2_DEBUG=1
JPI_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

---------------------------------------------------------------------------


© Oracle Blogs or respective owner

Related posts about /Sun