protected java.lang.String[] | pingDatabaseCmd(boolean bRedirect)defines the command to ping the derby database
Note that when using Darwin (Mac), the property,
"-Dderby.storage.fileSyncTransactionLog=True" is defined.
if (OS.isDarwin()) {
return new String[]{sJavaHome + File.separator + "bin" + File.separator +
"java",
"-Djava.library.path=" + sInstallRoot + File.separator +
"lib", "-Dderby.storage.fileSyncTransactionLog=True", "-cp",
sClasspath + File.pathSeparator + sDatabaseClasspath,
"com.sun.enterprise.cli.commands.DerbyControl", "ping",
dbHost, dbPort, Boolean.valueOf(bRedirect).toString()};
}
else {
return new String[]{sJavaHome + File.separator + "bin" + File.separator +
"java",
"-Djava.library.path=" + sInstallRoot + File.separator +
"lib", "-cp",
sClasspath + File.pathSeparator + sDatabaseClasspath,
"com.sun.enterprise.cli.commands.DerbyControl", "ping",
dbHost, dbPort, Boolean.valueOf(bRedirect).toString()};
}
|