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.

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

struct HttpResponse {<br />

long status; // HTTP status, OK etc.<br />

boolean isCommit; // <strong>server</strong> intends to commit this request<br />

NVList headers; // header array<br />

OctetSequence_t data; // data buffer<br />

};<br />

interface ReqProcessor {<br />

HttpResponse process(in HttpRequest req);<br />

};<br />

};<br />

The process() method<br />

The ReqProcessor IDL includes the process() method which your Apache <strong>web</strong> <strong>server</strong><br />

calls for internet requests. The <strong>web</strong> <strong>server</strong> passes the user's request as an argument to<br />

the process() method. Basically, the input for the process() method is a request from a<br />

browser: HttpRequest, and the output for the process() method is an html page<br />

contained in: HttpResponse.<br />

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

Before an Apache <strong>web</strong> <strong>server</strong> can invoke a CORBA <strong>server</strong>, you must modify the lines<br />

of code that pertain to the IIOP connector in the httpd.conf file. For detailed<br />

information, go to Chapter 5, “Web <strong>server</strong> to <strong>web</strong> container connectivity.”<br />

Figure 8.1<br />

Connecting from Apache to a CORBA <strong>server</strong><br />

Apache IIOP configuration<br />

The Apache IIOP connector has a set of configuration files that you must update with<br />

<strong>web</strong> <strong>server</strong> cluster information. By default, these IIOP connector configuration files are<br />

located in:<br />

/var/domains//configurations/<br />

/mos//conf<br />

Chapter 8: Apache <strong>web</strong> <strong>server</strong> to CORBA <strong>server</strong> connectivity 69

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

Saved successfully!

Ooh no, something went wrong!