Sending Commands to Logi Report Server from Java
After Logi Report Server has been started as a standalone server, you can send commands to the server to either shut it down or pop up the user interactive interface for administration. All of these can be done through the class jet.server.CommandSender. The full command is as follows:
JAVA -classpath <classpath> -Djava.compiler=NONE [-Dreporthome=<install_root>] jet.server.CommandSender [-s:server -p:port] -w:password [-?]|admin|shutdown|gc|(local:on|off)
Prints brief help message.
This is without JIT. This is not a required option. However, if you encounter problems running the server and you think that they relate to the Java VM, you can try turning off the JIT compiler and running again.
This is where Logi Report Server is installed. It is the destination location you specified when you installed it. It is required only if you do not execute the command from the local host on which Logi Report Server is running.
This property is used to control whether to pop up a message to show error information. The default value is false which indicates that the error message will not be displayed.
The classpath must include the following packages originally in your
<install_root>\lib: JRESServlets.jar; JREntServer.jar.
Host name on which Logi Report Server is running.
The port on which Logi Report Server is running. The default value is 8888.
Password of the admin user. Example: -w:admin.
A command sent to the server asking to pop up the user interactive interface for administering Logi Report Server.
A command sent to the server asking it to shut down.
A command sent to the server asking to only allow the administration commands sent by the local machine.
A command sent to the server asking to accept administration commands from anywhere.
A command sent to the server asking the JVM to schedule the Java Garbage Collector.
Note: Some of the common options will be used in the later topics. In addition, Logi Report has automatically generated the batch file CmdSender.bat for you so that you do not have to write a complicated command line.