01.01.2013 Views

CICS Transaction Gateway V5 The WebSphere ... - IBM Redbooks

CICS Transaction Gateway V5 The WebSphere ... - IBM Redbooks

CICS Transaction Gateway V5 The WebSphere ... - IBM Redbooks

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.

10.3 Testing the configuration<br />

We tested both our J2EE EJB application (CTGTesterCCI) and our servlet-based<br />

Web application (CTGTesterECI) in our J2EE Server, using the following two<br />

topologies:<br />

► HTTP Transport Handler (port 80) -> J2EE Server<br />

► <strong>IBM</strong> HTTP Server (port 99) -> <strong>WebSphere</strong> Plugin -> J2EE Server<br />

266 <strong>CICS</strong> <strong>Transaction</strong> <strong>Gateway</strong> <strong>V5</strong><br />

Note: This second topology was used to demonstrate how to authenticate<br />

the Web client and flow the security context onto <strong>CICS</strong>, since at the time of<br />

writing the HTTP Transport Handler did not support basic authentication.<br />

However, this support has now been made available with the PTF for APAR<br />

PQ59911, and we advise you to use this function if you require Web client<br />

authentication.<br />

For further details on these different topologies, refer to Figure 10-2 on page 241.<br />

How the HTTP request is matched to the definitions<br />

Before testing, it is good to have a general understanding of how the URL is<br />

matched to your definitions. If something goes wrong, you then have an idea of<br />

where to look.<br />

When using the <strong>IBM</strong> HTTP Server as the protocol catcher, the HTTP Server acts<br />

merely as a router for the HTTP request. <strong>The</strong> HTTP request is passed from the<br />

HTTP server into the <strong>WebSphere</strong> plugin and onto the Web container in the J2EE<br />

Server. <strong>The</strong>refore, the HTTP Server can be used as a proxy to the J2EE Server<br />

or to handle security.<br />

When using the HTTP Transport Handler in the J2EE Server, the HTTP request<br />

is received directly by the J2EE Server listening on the defined port, and the<br />

request is forwarded directly to the Web container in the J2EE Server.<br />

Using the HTTP Server<br />

<strong>The</strong> HTTP Server configuration is stored in the httpd.conf file. Within this file,<br />

there is one statement we are particularly interested in:<br />

Service /CTGTester*/*<br />

/usr/lpp/<strong>WebSphere</strong>/WebServerPlugIn/bin/was400plugin.so:service_exit<br />

<strong>The</strong> Service statement maps a request over to the <strong>WebSphere</strong> plugin<br />

environment. If the URL matches the given template (/CTGTester*/*), then the<br />

request is passed to the <strong>WebSphere</strong> plugin's executable module<br />

(was400plugin.so), which is defined in the second part of the URL, along with the<br />

entry point to be invoked in that module (service_exit).

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

Saved successfully!

Ooh no, something went wrong!