All LANSA Windows applications are launched by one executable - x_run.exe. This requires a number of parameters to establish the runtime environment such as partition and language. Refer to the Technical Reference for full details of X_RUN parameters.
The X_RUN program may be started using x_start.exe. This executable has one parameter, the name of a text file, which contains the X_RUN parameters. Deployed applications are provided with a shortcut that uses x_start.
Other ways to provide parameters to X_RUN include:
Once again you should see the Technical Reference for full details about these topics.
Controlling the Windows server runtime environment
When a Windows client connects to a LANSA Windows server application, the server application inherits its X_RUN parameters from the client. This is convenient for some parameters such as PART=PRD but other client X_RUN parameters will be wrong, such as DBII=*none. The DEFINE_ANY_SERVER Built In Function has an "X_RUN exceptional arguments" parameter which enables overrides to the parameters the server will use, to be defined. A special value "*server" can be used here, to ensure the server application starts with the desired parameters, for example, DBII=*server. The SuperServer connect form provided with this set of exercises uses the following X_RUN exceptional arguments on the DEFINE_ANY_SERVER.
The connect form accepts a Database ID (DBID) value when connecting to a Windows server.
These arguments enable the deployment package for the Windows server application to have Database settings which will then be applied at run time.
When the client connects to the Windows server application, a database connection must be established on the server. If a Microsoft SQL Server database is configured to use Integrated Windows authentication, then the client is simply required to provide a valid Windows user id and password to start the server application and connect to the database.
If another DBMS, such as Oracle is being used, you will need to be aware of how the database authentication is configured.