skip to main content

Automatic Client update

Automatic Client update
Unless the -noupdate option appears on the client command line or the iscobol.as.clientupdate.site is not set in the server side configuration , each time a thin client is launched, it looks for updates before starting the COBOL program.
The update process is described below:
1.
o
URL of the Update Server as specified by iscobol.as.clientupdate.site in the server side configuration. This URL can point either to a third party HTTP server or to a a isCOBOL Server started with the -hs option, as described in isCOBOL Server as HTTP server. Such server is configured by a file named swupdater.properties where the following entries must be provided:
See Configuring different repositories for native libraries for details about platform and bitness.
See Configuring different repositories for native libraries for details about platform and bitness.
See the Update Facility Server configuration for more information about the HTTP server setup.
o
Current client build number as specified by iscobol.as.clientupdate.version in the server side configuration. If this property is omitted, then the thin client will use the build number of its jar libraries.
2.
Note - It is possible to customize the above configuration by putting a isupdater.properties configuration file in the client side Classpath. See Client Configuration (isupdater.properties) for more information about the possible configuration entries.
a.
b.
The need of updating is determined by comparing the build numbers specified by the swupdater.version properties used by the client with the build numbers specified by the swupdater.version properties in the server side swupdater.properties file.
Configuring different repositories for native libraries
The Update Server may need to provide different native libraries to different clients depending on the client operating system and architecture. This is achieved by extending the iscobol.version.iscobolNative and iscobol.lib.iscobolNative property names as demonstrated below.
In the snippet below we show how to fill the swupdater.properties file for a Linux server that needs to update Windows clients both 32 and 64 bit, having all the necessary items stored in the /repository1 folder on the HTTP server:
We notice that the 'iscobol' package is the same for all operating systems and architectures, instead the 'iscobolNative' packages are specified with different directories, one for each possible operating system and architecture combination.
Note - It is possible also to specify only the operating system, e.g.
For example, if the client is Windows 64 bit, it checks if there is a library specified for Windows 64 bit; if not, it checks if there is a library specified for Windows; if not, then it requires the generic library.
No action is required client side. The client receives from the server the list of the available libraries and automatically detects its operating system and architecture, so it downloads the proper libraries.

Copyright (c) 2017 Veryant
Contact us
Please share your comments on this manual or on any
Veryant product documentation with the email button at the top left