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.

Configuring your Apache <strong>web</strong> <strong>server</strong> to invoke a CORBA <strong>server</strong><br />

Note<br />

“cluster” is used to represent a CORBA object instance(s) 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 two configuration files are:<br />

Table 8.1<br />

IIOP configuration file<br />

Apache IIOP connection configuration files<br />

Adding new CORBA <strong>server</strong>s (clusters)<br />

Mapping URIs to defined clusters<br />

Description<br />

Specifies the cluster(s) and the corresponding<br />

CORBA <strong>server</strong>(s) for each cluster.<br />

Maps URI references to the clusters defined in the<br />

WebClusters.properties file.<br />

Modifying either of these configuration files can be done so without starting up or<br />

shutting down the Apache <strong>web</strong> <strong>server</strong>(s) or CORBA <strong>server</strong>(s) because the file is<br />

automatically loaded by the IIOP connector.<br />

Adding new CORBA <strong>server</strong>s (clusters)<br />

CORBA <strong>server</strong>s are known as “clusters” to the IIOP connector. To configure your<br />

CORBA <strong>server</strong> for use with the IIOP connector, you need to define and add a “cluster”<br />

to the WebClusters.properties file.<br />

The WebClusters.properties file tells the IIOP connector:<br />

■<br />

The name of each available cluster - (ClusterList).<br />

■<br />

The <strong>web</strong> container identification.<br />

■<br />

Whether to provide automatic load balancing (enable_loadbalancing) for a particular<br />

cluster.<br />

To add a new cluster:<br />

■<br />

In the WebClusters.properties file:<br />

a add the name of the configured cluster to the ClusterList. For example:<br />

ClusterList=cluster1,cluster2,cluster3<br />

b define each cluster by adding a line in the following format specifying the cluster<br />

name, the required <strong>web</strong>container_id attribute, and any additional attributes (see<br />

the following cluster definition attribute table). For example:<br />

.<strong>web</strong>container_id = <br />

Note Failover and smart session are always enabled, for more information go to Chapter 7,<br />

“Clustering <strong>web</strong> components.”<br />

Table 8.2<br />

Cluster definition attributes<br />

Attribute Required Definition<br />

<strong>web</strong>container_id yes the object “bind” name or corbaloc string identifying the<br />

<strong>web</strong> container implementing the cluster.<br />

enable_loadbalancing no Load balancing is enabled by default; to enable load<br />

balancing, do not include this attribute or include and set<br />

to true. To disable load balancing, set to false indicating<br />

that this cluster instance should not employ loadbalancing<br />

techniques. Warning: Ensure that when<br />

entering the enable_loadbalancing attribute you give it a<br />

legal value (true or false).<br />

70 BES Developer’s Guide

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

Saved successfully!

Ooh no, something went wrong!