All Manuals > Developing Component Software with CORBA > 7 The LispWorks ORB

NextPrevUpTopContentsIndex

7.8 Specifying the host name in IORs

When an IOR is made by the LispWorks ORB, it contains a host name that will be used by the client to contact the ORB. By default, this name is generated by calling the C function gethostbyname() with the result of calling (machine-instance), which is often the FQDN of the machine.

If this is not sufficient, you can control the name that is placed in IORs by using the -IIOPhost and -IIOPnumeric ORB initialization options.

When you supply -IIOPhost name, then name specifies the host name directly. Otherwise, if you supply -IIOPnumeric, then the name is the numeric IP address obtained by reverse lookup of the result of (machine-instance).

You can supply ORB initialization options on the LispWorks command line or in the call to op:orb_init.

For example, on the command line:

lispworks-corba-server -IIOPnumeric
lispworks-corba-server -IIOPhost 192.168.1.9
lispworks-corba-server -IIOPhost my-fqdn.lispworks.com

For example, during ORB initialization:

(op:orb_init :lispworks-orb '("-IIOPnumeric"))
(op:orb_init :lispworks-orb '("-IIOPhost" "192.168.1.9"))
(op:orb_init :lispworks-orb
             '("-IIOPhost" "my-fqdn.lispworks.com"))

The ORB initargs -ORBhost and -ORBnumeric are aliases for -IIOPhost and -IIOPnumeric respectively.


Developing Component Software with CORBA - 14 Feb 2015

NextPrevUpTopContentsIndex