12.11.2014 Views

web server - Borland Technical Publications

web server - Borland Technical Publications

web server - Borland Technical Publications

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

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

Table 5.1<br />

IIOP connector attributes (continued)<br />

Attribute Default Description<br />

canBufferHttp10Data true When the HTTP protocol is less than 1.1 and the content<br />

length is not set on a servlet, the following two choices are<br />

available for the <strong>web</strong> container. It can buffer up the data,<br />

compute the content length, and then send the response or<br />

it can raise an error message. To avoid buffering the data<br />

and consuming memory, set this attribute to false.For more<br />

information, go to “Browsers supporting only the HTTP 1.0<br />

protocol” on page 49.<br />

shortSessionId false To enable the use of the <strong>Borland</strong> “collapsed locator” feature<br />

that reduces the size of the IIOP connectors session id, set<br />

to true. By default, this attribute is disabled; set to false.<br />

The IIOP connector uses a stringified object reference (IOR)<br />

as a means to associate a client with a given <strong>Borland</strong> <strong>web</strong><br />

container (service affinity). Some network routers and<br />

browser implementations are unable to cope with the large<br />

payload stored within the Session Id Cookie.<br />

To resolve this problem, <strong>Borland</strong> has developed the<br />

collapsed locator string that allows service affinity to be<br />

implemented using a much shorter session id string. Setting<br />

shortSessionId to true enables this feature, setting it to false<br />

or omitting the parameter entirely, defaults to the<br />

conventional IOR-based solution.<br />

Note: The “collapsed locator” is essentially an encoded<br />

CORBALOC string. Resolving a CORBALOC string to an<br />

object-reference is a more costly operation than the<br />

equivalent operation on an IOR. To alleviate this extra cost,<br />

the Apache <strong>web</strong> <strong>server</strong> will maintain a look-aside list of<br />

encoded CORBALOC strings to their resolved object<br />

references. This will incur a slight increase in memory use<br />

per Apache <strong>web</strong> <strong>server</strong>.<br />

Important: In order for the shortSessionID feature to work<br />

correctly, you must specify a port value for the IIOP<br />

connector; you cannot use the port default value of 0 (zero).<br />

Modifying the IIOP configuration in Apache<br />

The httpd.conf file is the global configuration file for the Apache <strong>web</strong> <strong>server</strong>. Within the<br />

httpd.conf file are the following lines which pertain to the IIOP connector.<br />

Windows LoadModule iiop2_module /lib//<br />

mod_iiop2.dll<br />

IIopLogFile /var/domains//<br />

configurations//mos//<br />

logs/mod_iiop.log<br />

IIopLogLevel error<br />

IIopClusterConfig /var/domains//<br />

configurations//mos//<br />

conf/WebClusters.properties<br />

IIopMapFile /var/domains//<br />

configurations//mos//<br />

conf/UriMapFile.properties<br />

Chapter 5: Web <strong>server</strong> to <strong>web</strong> container connectivity 43

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

Saved successfully!

Ooh no, something went wrong!