Products Downloads


French version


 

Important: This section only concerns programs generated with Java server parts.

 

Access

To start the java Middleware daemon, execute the command java com.hardis.middleware.MwServer 3500 MT , where 3500 is the recommended port and MT stands for "Multi-Thread".

 

We recommend using a port higher than 1024.

 

You can also specify the option MP (instead of MT) for Multi-Process execution.

 

You can also set the DBG option. This run mode is useful when you want to debug a server part generated in Java.

 

Notes:

    • It is also possible to select the option MP (instead of MT) for execution of multiple processes.
    • On the same machine, it is possible to have several instances of the Java server, possibly with different operating modes (MT, MP).
      In this case, you must indicate a different port when running the daemons so that, at client configuration level, the processes use the daemon according to the port specified during definition on the physical server.
    • The DaemonDBG.bat command file lets you start up a Java MT daemon configured to allow program debugging. Click here for more information on configuring the daemon to be used with the Visual Adelia debugger.

 

Java server programs can be run once the Java Middleware daemon has been started.

 

Other parameters of the java com.hardis.middleware.MwServer command

Command line syntax:

java com.hardis.middleware.MwServer  <port> MT [-o<timeout (in seconds)>]

or

java com.hardis.middleware.MwServer  <port> MP

 

<port>: [<Hostname or @IP>:] <Port number>

TCP/IP port on which the Middleware daemon listens.

If a host name or IP address is specified, the daemon only listens at the set address. (Example: if <port> = 194.127.4.3:3500, the daemon only listens on port 3500 at the address 194.127.4.3).

If no address is specified, or if it is set to 0.0.0.0, the daemon listens to all available addresses on the machine.

 

-o<timeout (in seconds)>] : Specifies the timeout beyond which any orphan server processes (i.e. processes whose client parts are no longer responding) are terminated.

If < timeout> is equal to 0, the timeout is deactivated. It is also deactivated if the parameter -o is not specified.

Default: timeout set to 0 second. Minimum value is 60 seconds.

 

 

 

 

On a Windows workstation, the Java Middleware daemon is launched as a Windows service.

 

Java Middleware daemon Windows service parameters:

Installing the service

DeamonJavaService –install [port [-auto | -manual [<user> <password> [<Daemon parameter> [<JVM parameter> [<JVM path>]]]]]]

 

Port: Middleware daemon TCP/IP listening port (3500 by default)

 

-auto: Service created in automatic startup mode (default mode)

 

-manual: Service created in manual startup mode

 

<user>: Service start profile ("localsystem" by default).
Enter *dft if you wish to use the default value and enter parameters after this parameter.

 

<password>: Password associated with the startup profile.

Enter *dft if you have specified the value *dft for <user>.

 

<Daemon parameter>: -o<timeout (in seconds)> (timeout is disabled by default)
Enter *dft if you wish to use the default value and enter parameters after this parameter.

 

<JVM parameter>: JVM parameters (no specific parameter by default).

If you have several parameters separated by spaces, put the string in quotes. Enter *dft if you wish to use the default value and enter parameters after this parameter.

 

<JVM path>: Path pointing to the "jre" directory corresponding to the JVM which will be used for the daemon (the JVM installed with Adelia is chosen by default: %ADELIWS%\JDK\jre). If your string contains the space character, put the string in quotes.

 

 

Examples :

DaemonJavaService –install

 

DaemonJavaService -install 3500 -auto  *dft *dft *dft *dft "C:\Program Files (x86)\Java\jre7"

 

DaemonJavaService -install 3500 -auto  MonDomaine\monprofil mordepasse "-o60"  "-XX:PermSize=256m -XX:MaxPermSize=512m" "C:\Program Files\Java\jre7"

 

 

Uninstalling the service

DaemonJavaService –uninstall

 

 

 

 

 

 

↑ Top of page

  • Aucune étiquette