The SGCom application is distributed in a ZIP archive that can be downloaded from the Artifactory of the D2000 department http://srvbuild2v.ipstest.sk:8081/artifactory/webapp/#/artifacts/browse/tree/General/d2000/sk/ipesoft/sgcom/ sgcom. It is necessary to choose the correct version - SGCom version numbering copies the D2000 system version numbering.
The archive has the following directory structure:

  • app/ - XML files with exported definitions of D2000 objects used by SGCom. The metering central must use these objects, otherwise it will not be able to communicate with SGCom.
  • bin/ - SGCom.bat and SGcom files for running the application on Windows and Linux platforms. The script in them has the tasks of finding the JRE or JDK in the system and starting the execution of the SGCom application. Do not modify these scripts! A different place is reserved for entering your own parameters.
  • db/ - in the archive, an empty directory where SGCom stores its local database files at runtime.
  • doc/ - documentation
  • lib/ - contains JAR files - Java libraries that SGCom needs
  • log/ - in the archive, an empty directory where SGCom saves LOG files with the execution log at runtime.
  • nssm-2.24/ - directory with the NSSM (Non-sucking Service Manager) program, which allows SGCom to run as a Windows Service after configuration on the local computer.
  • SGCom.bat – script template to start SGCom execution. It contains parameters for running from the command line, which need to be adjusted individually for each instance.
  • SGComLogging.properties – configuration template that controls LOG creation.



The installation procedure is as follows:


  1. Download the ZIP archive and extract it. An example of a recommended location:
    D:/D2000/D2000_V10.1.39_sever
    D:/D2000/SGCom-10.1.39
  2. According to the template SGCom.bat and SGComLogging.properties, set parameters for startup. It is recommended that you create your own copies of these files for each instance of SGCom.
  3. Test the correctness of the parameters by running from the console.
  4. Use the included nssm application to create a Windows service.
    The following command will display a GUI that allows for convenient configuration:
    > nssm install
  5. Start of the created service.




Napíšte komentár