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.

Large data transfer<br />

Important<br />

Note<br />

Note<br />

Adding new <strong>web</strong> applications<br />

By default, your <strong>web</strong> application is not made available through Apache. In order to<br />

make it available through Apache, you must add some information to the <strong>web</strong><br />

application descriptor. For step-by-step instructions on how to do so, go to the<br />

Management Console User's Guide.<br />

For new applications that you have deployed to the <strong>Borland</strong> <strong>web</strong> container, you need to<br />

do the following to make them available through the Apache <strong>web</strong> <strong>server</strong>. Use the<br />

UriMapFile.properties file to map HTTP URI strings to <strong>web</strong> cluster names configured in<br />

the WebClusters.properties file (see “Adding new clusters” on page 46.)<br />

■<br />

In the UriMapFile.properties file, type:<br />

= <br />

where is a standard URI string or a wild-card string, and <br />

is the cluster name as it appears in the ClusterList entry in the<br />

WebClusters.properties file.<br />

For example:<br />

/examples = cluster1<br />

/examples/* = cluster1<br />

/petstore/index.jsp = cluster2<br />

/petstore/servlet/* = cluster2<br />

In this example:<br />

■<br />

■<br />

Any URI that starts with /examples will be forwarded to a <strong>web</strong> container running in<br />

the “cluster1” <strong>web</strong> cluster.<br />

URIs matching either /petstore/index.jsp or starting with /petstore/servlet will be<br />

routed to “cluster2”.<br />

With the URI mappings, the wild-card “*” is only valid in the last term of the URI and<br />

may represent the follow cases:<br />

■<br />

the whole term (and all inferior references) as in /examples/*.<br />

■<br />

the filename part of a file specification as in /examples/*.jsp.<br />

Modifications you make to the UriMapFile.properties file automatically take effect on<br />

the next request. You do not need to restart your <strong>server</strong>(s).<br />

If the WebCluster.properties or UriMapFile.properties is altered, then it is automatically<br />

loaded by the IIOP connector. This means that the adding and removing of <strong>web</strong><br />

applications and the altering of cluster configurations may be done so without starting<br />

up or shutting down the Apache <strong>web</strong> <strong>server</strong>(s) or <strong>Borland</strong> <strong>web</strong> container(s).<br />

Large data transfer<br />

This section details the BES options available to you for handling large data transfers<br />

between a client and the <strong>Borland</strong> <strong>web</strong> container with Apache 2.0 in between. The data<br />

to be transferred may be either:<br />

■<br />

■<br />

static content obtained from a file, or<br />

dynamically generated content<br />

Typically, the content length is known in advance for static content, but is not known for<br />

dynamic content.<br />

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

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

Saved successfully!

Ooh no, something went wrong!