J2EE Servlets

     

What are some of the issues in using servlets from both WebSphere and Domino? This section briefly discusses this aspect of running a combined WebSphere and Domino system. Chapter 9, "Accessing J2EE Elements from Domino," covered aspects of accessing J2EE elements from Domino. Chapter 10, "Accessing Domino from J2EE" covered aspects of accessing Domino from J2EE. Based on those chapters there are few if any "issues" dealing with servlets in a combined WebSphere and Domino system. Here is a short summary of the areas involving servlets discussed in Chapters 9 and 10.

Invoking Servlets from Domino

As described at length in Chapter 9, the WebSphere product versions provide Web server "plug-ins" for various Web servers, enabling them to forward requests for J2EE Web elements, namely servlets and JSPs, to the WebSphere Application Server. In particular, a Web server plug-in is provided for the Domino HTTP server, which allows requests for servlets and JSPs directed to Domino to be handled by a WAS node. This plug-in mechanism was one of the first integration points between the Domino and WAS products. The plug-in itself is provided as a shared library (DLL for Windows, .a for AIX, .so for Solaris, and as of this writing no plug-in exists for Domino on Linux) and a default configuration file: plugin-cfg.xml . The plug-in files are packaged with both the Domino and WAS product installations and can be automatically installed during a WAS installation. The plug-in also can be installed manually. The plug-in files can be found under the Domino install path : Domino/Data/domino/plugins/was5 .

Passing Data to Servlets in the URL

The WebSphere Domino HTTP server plug-in can be viewed as a basic means of enabling J2EE access from Domino. With the plug-in, access to J2EE elements is via explicit URL links. For example, sending a URL of the form http://A_Domino_Host/servlet/SomeServlet to a Domino server with the plug-in installed will result in the Domino HTTP task passing the request via the plug-in to a WAS node, which then passes the response back via Domino.

Posting Data to Servlets from Domino Forms

Since a JSP is a type of servlet, assume that you can replace "servlet" with "JSP" in what follows . To get a Domino form processed by a servlet, you must somehow invoke the servlet when the user hits the Submit button (or equivalent) on the form displayed in the user 's browser. There are two commonly used techniques: overriding the $$Return field or overriding the HTML Form. These two techniques are discussed in detail in Chapter 9.



IBM WebSphere and Lotus Implementing Collaborative Solutions
IBM(R) WebSphere(R) and Lotus: Implementing Collaborative Solutions
ISBN: 0131443305
EAN: 2147483647
Year: 2003
Pages: 169

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net