contentsnext

9. The Client

Now the services are arranged. To access them the Magic Client must be arranged, too. In this sample it is presumed that the services have been set up on a host named "mdp_server" with the IP 192.168.18.2.

9.1 Licence Manager

To access the Licence-manager the following must be added to MAGIC.INI:
[MAGIC_ENV]  
LicenseFile =  3111@mdp_server 
or 
3111@192.168.18.2 
This setting specifies the location of the license server, through a Host/Port combination, and also provides an alternate license file which can be found on an accessible file system. In the event that Magic cannot located the primary License file, it will use the alternate License file specified. If Magic does not find a license file, it will give an error message and abort.

9.2 Broker

To access the Broker the following must be added to MAGIC.INI:
 
[MAGIC_SERVERS]  
mdp_broker =  2,mdp_server/2001,, BrokerPasswd,0,,1 
or 
2,192.168.18.2/2001,, BrokerPasswd,0,,1
server type number is a unique number assigned to a server type. The translation between a server type number and a server type is hard-coded in Magic. 
For Magic V8, the server type number is 1. For the Magic Request Broker, the server type number is 1. For a data server, the server type number is 0. 
Syntax : 
<server name>=<communication type number>, <server address>, <username>, <password>, <timeout>, <alternate server name>, <server type number>.

9.3 Data Server

To access the Data-server and build a file in the HOME directory of user "magicadm" the following must be added to MAGIC.INI:
 
[MAGIC_SERVERS]  
mdp_data =  2,mdp_server/2060, magicadm, magicadmpw,0,,0 
or 
2,192.168.18.2/2060,magicadm, magicadmpw,0,,0
server type number is a unique number assigned to a server type. The translation between a server type number and a server type is hard-coded in Magic. 
For Magic V8, the server type number is 1. For the Magic Request Broker, the server type number is 1. For a data server, the server type number is 0. 
Syntax : 
<server name>=<communication type number>, <server address>, <username>, <password>, <timeout>, <alternate server name>, <server type number>.
     
[MAGIC_DATABASES]  
mdp_app =  4, MAGIC, mdp_data, /usr/magicadm/, , , , , NoMagicRecordLock, ChangeFileInToolkit, CheckDefinition, CheckKey, NoFileLocks, , , , NoCheckExist, 0, , NoXATrans, NoAS400SrvrSort, Sample setup for an c-isam database on mdp_server with files stored into the home of "magicadm"

contentsnext