Starting the HACloud Session Server

You need to start the HACloud session server before you can use the HACloud TN3270 emulator. You do this with the help of the startsessionserver.bat file or a Windows service[1] (Windows) and a startsessionserver.sh script (UNIX).

Windows

To start the HACloud session server from a command prompt (Windows):

  1. Ensure that the installed Java is added to the PATH environment variable.
  2. Start the Enterprise Server region that runs the application you want to connect to.
  3. Start either the 32-bit or 64-bit Enterprise Developer command prompt or Enterprise Server command prompt - this must match the working mode, 32 or 64-bit, of the JRE you have installed.
  4. Type startsessionserver at the command prompt, and press Enter.

    Check the console for the messages that the Micro Focus HACloud Session Server has started.

To start the HACloud session server as a Windows service, Micro Focus HA Cloud, you need to install the service once, and then start it from the Windows Service Manager[1].

  1. To install the service:
    1. Start either the 32-bit or 64-bit Enterprise Developer command prompt or Enterprise Server command prompt with administrator's rights - this must match the working mode, 32 or 64-bit, of the JRE you have installed.
    2. Enter the following at the command prompt to install the service:
      hacloudserviceinstall mode

      Where mode can be either 32 or 64. mode is the working mode of the JRE. If omitted, the script takes a value of 64.

      Important: When the Micro Focus HA Cloud service is deployed, you need to stop it manually before you can uninstall or upgrade this product.
  2. To start the service:
    1. Ensure you have a 64-bit Java installed and added to the PATH environment variable.
    2. Open the Windows Services Manager.
    3. Click Micro Focus HA Cloud, and click Start the service[1].
    4. Alternatively, you can execute the following command from a command prompt to start the service:
      net start mfhacloud

UNIX

To start the HACloud session server (UNIX):

  1. Ensure that the installed Java is added to the PATH environment variable.
  2. Start the Enterprise Server region that runs the application you want to connect to.
  3. Open a terminal and set up the COBOL environment in it.
  4. Run the following to start the session server:
    startsessionserver.sh

    Check the terminal for the messages that the Micro Focus HACloud Session Server has started.

  5. In addition, you can execute the following script in $COBDIR/bin which will register a system service named MFHACloud which will start the session server. Run this as root from a terminal that has the COBOL environment specified. You also need to specify an administrator user account to run the Enterprise Server:
    ./Setup_SystemD_Services.sh ESadminID

    Where ESadminID is the administrator ID you have configured for Enterprise Server.