Apache Web Services

14
Using Apache HTTPD with BusinessObjects Enterprise V3.1 Dan Donarski Kolb+Co. Technology Advisers

Transcript of Apache Web Services

Page 1: Apache Web Services

Using Apache HTTPDwith

BusinessObjectsEnterprise V3.1

Dan DonarskiKolb+Co. Technology Advisers

Page 2: Apache Web Services

Apache HTTPBusinessObjects out of box installation◦ - Uses Tomcat application server

To process dynamic Java web pages

BO

Page 3: Apache Web Services

Apache HTTPSeparated Application & Web Services◦ - Uses Apache HTTP web server

Static content◦ - Tomcat application server

To process Java web pages

Page 4: Apache Web Services

Apache HTTPAdvantages◦ Apache web server provide faster response to static pages and

content including binary images and the like. Tomcat provides the redirected JavaServer page requests.

◦ Divide static web service from dynamic web application server for public access via firewall.◦ Use Apache web server for incoming load balancing and web farm

configuration.◦ Apache has faster startup and shutdown times.◦ Tomcat is not as robust and configurable as Apache.

Page 5: Apache Web Services

Apache HTTP5-Step Implementation:

◦ 1.) Install Apache web server◦ 2.) Install mod_jk connector ◦ 3.) Modify server.xml file ◦ 4.) Perform Wdeploy to distributed mode◦ 5.) Test final distributed installation

Page 6: Apache Web Services

Step 1 – Install Apache

◦ Download and install Apache msi file v2.2.xhttp://tomcat.apache.org/

Index of /apache/tomcat/tomcat-connectors/jk/binaries/win32/jk-1.2.28 Mod_jk-1.2.28-httpd-2.2.3.soReadme.pdf

Default installationStart Apache servicesTest – http://localhost/

Apache HTTP

Page 7: Apache Web Services

Step 2 – Install mod_jk connector - Use mod_jk.so file◦ - Install into C:\Program Files\Apache Software Foundation\Apache2.2\modules

- Files to configure in Apache’s \conf directory:◦ - httpd.conf

Enables redirect awareness◦ - workers.properties

Machines to redirect toward◦ - bobj.InfoViewApp.conf (from wdeploy process)

What to redirect

Apache HTTP

Page 8: Apache Web Services

httpd.conf sample

#DGD - Load the AJP13 RedirectorLoadModule jk_module modules/mod_jk.so

#DGD - Specify worker definition fileJKWorkersFile conf/workers.properties

#DGD - This gets added during wdeploy configurationInclude conf/bobj.InfoViewApp.conf

Apache HTTP

Page 9: Apache Web Services

workers.properties sample

◦ worker.list=wlb,jkstatus

◦ # Defining a worker named ajp13w and of type ajp13◦ worker.ajp13w.type=ajp13◦ worker.ajp13w.host=10.x.x.xx◦ worker.ajp13w.port=8009◦ # Defining a load balancer◦ worker.wlb.type=lb◦ worker.wlb.balance_workers=ajp13w◦ # Define status worker◦ worker.jkstatus.type=status

Apache HTTP

Page 10: Apache Web Services

bobj.InfoViewApp.conf sample

Alias /InfoViewApp "C:/Program Files/Apache Software Foundation/Apache2.2//htdocs/InfoViewAPP"<Directory "C:/Program Files/Apache Software Foundation/Apache2.2//htdocs/InfoViewAPP">Options FollowSymLinksDirectoryIndex default.htm index.htm default.html index.html

</Directory>

JkMount /InfoViewApp/*.jsp wlbJkMount /OpenDocument/* wlb

JKMount /jsp-examples/*.jsp wlb

Apache HTTP

Page 11: Apache Web Services

Step 3 – Modify server.xml file

◦ <!-- Define an AJP 1.3 Connector on port 8009 -->◦ <Connector enableLookups="false" port="8009" protocol="AJP/1.3"

redirectPort="8443"/>

Apache HTTP

Page 12: Apache Web Services

Step 4 – Perform Wdeploy◦ # as_dir: the installation directory of the application server◦ # as_instance: the application server instance to deploy into◦ # as_service_name: on windows, the name of the tomcat service when tomcat is

installed as a service◦ # as_service_key: on windows, when tomcat is installed as a service, the name of the

key where the java startup parameters are stored◦ # distributed or standalone mode setting◦ # webserver type setting◦ # web server working directory◦ # application to deploy

Apache HTTP

Page 13: Apache Web Services

Step 5 - Test final distributed installation

◦ jsp-examples◦ http://apachehost/InfoViewApp

Apache HTTP

Page 14: Apache Web Services

Installation Complete!

Dan [email protected]

Apache HTTP