web server - Borland Technical Publications
web server - Borland Technical Publications web server - Borland Technical Publications
Chapter 8 8Apache web server to CORBA Chapter server connectivity Note Important The Apache IIOP connector can be configured to enable your web server to communicate with any standalone CORBA server implementing the ReqProcessor Interface Definition Language (IDL). This means you can easily put a web-based frontend on almost any CORBA server. In order to implement the ReqProcessor IDL, you need to have installed the Borland Enterprise Server AppServer Edition, or have installed the VisiBroker Edition, Web Services pack (VisiExchange) component. For more information, go to the BES Installation Guide. For documentation updates, go to www.borland.com/techpubs/bes. Web-enabling your CORBA server The following steps are required to make your CORBA server accessible over the internet: ■ “Determining the urls for your CORBA methods” on page 67. ■ “Implementing the ReqProcessor IDL in your CORBA server” on page 68. Determining the urls for your CORBA methods In order to make your CORBA server accessible over the internet, you need to: 1 Decide what business operations you want to expose. 2 Provide a url for those business operations (CORBA methods). For example, your banking company's CORBA server is implementing the methods: debit(), credit(), and balance() and you want to expose these business methods to users through the internet. You need to map each of the CORBA server operations to what the user types in a browser. Your bank company web site is http://www.bank.com. Chapter 8: Apache web server to CORBA server connectivity 67
Web-enabling your CORBA server Important To provide a url for each of the business operations you want to expose to the internet users: 1 Append the web application name to the company root url. For example: http://www.bank.com/accounts where accounts is the web application name. By default, your web application is not made available through the web server. In order to make it available through Apache, you must add some information to the web application descriptor. For step-by-step instructions on how to do so, go to the Management Console User's Guide. 2 Append a name that is meaningful to users for the method in the web application that you want to expose. For example: http://www.bank.com/accounts/balance where balance is the meaningful name for the balance() method. Implementing the ReqProcessor IDL in your CORBA server The ReqProcessor IDL allows communication between a web server and a CORBA server using IIOP. Once you implement the ReqProcessor IDL in your CORBA server, http requests can be passed from your web server to your CORBA server. In implementing this IDL, you must expect the request url as part of the HttpRequest and invoke the appropriate CORBA method in response to that url. IDL Specification for ReqProcessor Interface */ module apache { struct NameValue { string name; string value; }; typedef sequence NVList; typedef sequence OctetSequence_t; struct HttpRequest { string authType; // auth type (BASIC,FORM etc) string userid; // username associated with request string appName; // application name (context path) string httpMethod; // PUT, GET etc, string httpProtocol; // protocol HTTP/1.0, HTTP/1.1 etc string uri; // URI associated with request string args; // query string associated with this request string postData; // POST (form) data associated with request boolean isSecure; // whether client specified https or http string serverHostname; // server hostname specified with URI string serverAddr; // [optionally] server IP address specified with URI long serverPort; // server port number specified with URI NVList headers; // headers associated with this request format: header-name:value }; 68 BES Developer’s Guide
- Page 27 and 28: Creating Partitions Creating Partit
- Page 29 and 30: Running Partitions Table 3.1 Option
- Page 31 and 32: Configuring Partitions You can also
- Page 33 and 34: JMX support in Partitions ■ ■ A
- Page 35 and 36: JMX support in Partitions Figure 3.
- Page 37 and 38: Thread pools Partition properties r
- Page 39 and 40: 28 BES Developer’s Guide
- Page 41 and 42: Apache web server implementation Fo
- Page 43 and 44: Borland web container implementatio
- Page 45 and 46: Borland web container implementatio
- Page 47 and 48: Borland web container implementatio
- Page 49 and 50: Smart Agent implementation Smart Ag
- Page 51 and 52: 40 BES Developer’s Guide
- Page 53 and 54: Apache web server to Borland web co
- Page 55 and 56: Apache web server to Borland web co
- Page 57 and 58: Apache web server to Borland web co
- Page 59 and 60: Large data transfer Downloading lar
- Page 61 and 62: Large data transfer Uploading large
- Page 63 and 64: IIS web server to Borland web conta
- Page 65 and 66: IIS web server to Borland web conta
- Page 67 and 68: IIS web server to Borland web conta
- Page 69 and 70: Session management with JSS If an i
- Page 71 and 72: Managing and configuring the JSS Co
- Page 73 and 74: The Borland IIOP connector BES supp
- Page 75 and 76: Setting up your web container with
- Page 77: 66 BES Developer’s Guide
- Page 81 and 82: Configuring your Apache web server
- Page 83 and 84: Configuring your Apache web server
- Page 85 and 86: Web Services and Partitions ■ ■
- Page 87 and 88: Web Service providers Java:RPC prov
- Page 89 and 90: How Borland Web Services work
- Page 91 and 92: Packaging Web Service Application A
- Page 93 and 94: Tools Overview Java2WSDL tool Note
- Page 95 and 96: 84 BES Developer’s Guide
- Page 97 and 98: Client view of an enterprise bean L
- Page 99 and 100: Client view of an enterprise bean E
- Page 101 and 102: Managing transactions Managing tran
- Page 103 and 104: Support for JNDI Support for JNDI T
- Page 105 and 106: EJB to CORBA mapping A CORBA progra
- Page 107 and 108: 96 BES Developer’s Guide
- Page 109 and 110: Application Client architecture Pac
- Page 111 and 112: Document Type Definitions (DTDs) my
- Page 113 and 114: Support of references and links The
- Page 115 and 116: Use of Manifest files Use of Manife
- Page 117 and 118: 106 BES Developer’s Guide
- Page 119 and 120: Sessions in secondary storage If yo
- Page 121 and 122: 110 BES Developer’s Guide
- Page 123 and 124: Container-managed persistence and R
- Page 125 and 126: Implementing an entity bean Generat
- Page 127 and 128: Container-Managed Persistence in Bo
Chapter<br />
8<br />
8Apache <strong>web</strong> <strong>server</strong> to CORBA<br />
Chapter<br />
<strong>server</strong> connectivity<br />
Note<br />
Important<br />
The Apache IIOP connector can be configured to enable your <strong>web</strong> <strong>server</strong> to<br />
communicate with any standalone CORBA <strong>server</strong> implementing the ReqProcessor<br />
Interface Definition Language (IDL). This means you can easily put a <strong>web</strong>-based frontend<br />
on almost any CORBA <strong>server</strong>.<br />
In order to implement the ReqProcessor IDL, you need to have installed the <strong>Borland</strong><br />
Enterprise Server AppServer Edition, or have installed the VisiBroker Edition, Web<br />
Services pack (VisiExchange) component. For more information, go to the BES<br />
Installation Guide.<br />
For documentation updates, go to www.borland.com/techpubs/bes.<br />
Web-enabling your CORBA <strong>server</strong><br />
The following steps are required to make your CORBA <strong>server</strong> accessible over the<br />
internet:<br />
■<br />
“Determining the urls for your CORBA methods” on page 67.<br />
■<br />
“Implementing the ReqProcessor IDL in your CORBA <strong>server</strong>” on page 68.<br />
Determining the urls for your CORBA methods<br />
In order to make your CORBA <strong>server</strong> accessible over the internet, you need to:<br />
1 Decide what business operations you want to expose.<br />
2 Provide a url for those business operations (CORBA methods).<br />
For example, your banking company's CORBA <strong>server</strong> is implementing the methods:<br />
debit(), credit(), and balance() and you want to expose these business methods to<br />
users through the internet. You need to map each of the CORBA <strong>server</strong> operations to<br />
what the user types in a browser.<br />
Your bank company <strong>web</strong> site is http://www.bank.com.<br />
Chapter 8: Apache <strong>web</strong> <strong>server</strong> to CORBA <strong>server</strong> connectivity 67