12.11.2014 Views

web server - Borland Technical Publications

web server - Borland Technical Publications

web server - Borland Technical Publications

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Apache <strong>web</strong> <strong>server</strong> to <strong>Borland</strong> <strong>web</strong> container connectivity<br />

Use these lines of code to configure the Apache <strong>web</strong> <strong>server</strong> IIOP connector.<br />

Table 5.2<br />

IIOP directives for Apache<br />

Directive default Description<br />

LoadModule /lib/<br />

/ mod_iiop2.dll<br />

Enables Apache 2.0 to load the IIOP<br />

connector. This directive instructs the<br />

Apache <strong>web</strong> <strong>server</strong> to load the Apache<br />

mod_iiop2 module from the location specified.<br />

Once the module is loaded, the following<br />

four directives are required to enable the<br />

IIOP connector to locate the <strong>web</strong><br />

container(s) or CORBA <strong>server</strong>(s) it must<br />

communicate with and perform other<br />

functions.<br />

IIopLogFile<br />

/var/domains/<br />

/<br />

configurations/<br />

/mos/<br />

/ logs/mod_iiop.log<br />

Specifies the location where the IIOP<br />

connector writes log output.<br />

IIopLogLevel error Specifies the level of log information to write.<br />

This directive can take one of the following:<br />

debug | warn | info | error.<br />

IIopClusterConfig<br />

IIopMapFile<br />

/var/domains/<br />

/<br />

configurations/<br />

/mos/<br />

/conf/<br />

WebClusters.properties<br />

/var/domains/<br />

/<br />

configurations/<br />

/mos/<br />

/conf/<br />

UriMapFile.properties<br />

Specifies the location of the “cluster”<br />

instance file. For CORBA <strong>server</strong>s, identifies<br />

the file that contains the “cluster” name by<br />

which they are known to the IIOP<br />

connector 1 .<br />

Specifies the location of the URI-to-Instance<br />

mapping file. For CORBA <strong>server</strong>s, maps<br />

HTTP URIs to a specific “cluster” known to<br />

the IIOP connector.<br />

1 “cluster” is used to represent a CORBA <strong>server</strong> instance that is known to the system<br />

by a single name or URI. The IIOP connector is able to load-balance across multiple<br />

instances, hence the term “cluster” is used.<br />

The following are examples of typical configurations of these 5 lines for the IIOP<br />

connector for Apache 2.0:<br />

Windows example LoadModule iiop2_module C:/<strong>Borland</strong>/BDP/lib/myapache/mod_iiop2.dll<br />

IIopLogFile C:/<strong>Borland</strong>/BDP/var/domains/base/configurations/j2ee/mos/<br />

myapache/logs/mod_iiop.log<br />

IIopLogLevel error<br />

IIopClusterConfig C:/<strong>Borland</strong>/BDP/var/domains/base/configurations/j2ee/<br />

mos/myapache/conf/WebClusters.properties<br />

IIopMapFile C:/<strong>Borland</strong>/BDP/var/domains/base/configurations/j2ee/mos/<br />

myapache/conf/UriMapFile.properties<br />

Solaris example LoadModule iiop2_module /opt/<strong>Borland</strong>/BDP/lib/myapache/mod_iiop2.so<br />

IIopLogFile /opt/<strong>Borland</strong>/BDP/var/domains/base/configurations/j2ee/mos/<br />

myapache/logs/mod_iiop.log<br />

IIopLogLevel error<br />

IIopClusterConfig /opt/<strong>Borland</strong>/BDP/var/domains/base/configurations/j2ee/<br />

mos/myapache/conf/WebClusters.properties<br />

IIopMapFile /opt/<strong>Borland</strong>/BDP/var/domains/base/configurations/j2ee/mos/<br />

myapache/conf/UriMapFile.properties<br />

44 BES Developer’s Guide

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!