On IBM i the JSMDirect program locates the LANSA function to be executed by performing a keyed lookup on file DC@W29V1.
The Host Name is the host component of the request URL this is determined by the HTTP protocol Host keyword.
If the URL is http://www.lansa.com/cgi-bin/jsmdirect then the Host Name is WWW.LANSA.COM:80.
If the URL is http://10.1.2.3/cgi-bin/jsmdirect then the Host Name is 10.1.2.3:80.
This allows multi-homing where the IP address of www.lansa.com and 10.1.2.3 are the same but the HTTP client program specifies the host name in the HTTP protocol allowing the HTTP server to treat www.lansa.com and 10.1.2.3 as different hosts.
A Host Name of *DEFAULT means any host.
JSMDirect first does a keyed lookup for on the Application Name and Host Name, if an entry does not exist then a second keyed lookup on Application Name and *DEFAULT is done.
To update the DC@W29 file use LANSA Integrator Studio or you may use Data File Utility or SQL commands on the file.
Refer to Maintaining Registration File DC@W29.
Structure of file DC@W29:
Note: The language code is an optional value in the registration of functions in the IBM i DC@W29 but is a required one in dc_w29.txt on Windows. If you don't register the language code in DC@W29, LANSA will run the server function using the partition's default language. If you don't register the language code in dc_w29.txt, JSMDirect will end with an error.
Example (without Program parameter):
ORDERENTRY MYCOMPUTER:80 JSERVICE JS015 WIZ ENG
ORDERENTRY *DEFAULT JSERVICE JS016 WIZ ENG