Apache Web Services
Transcript of Apache Web Services
Using Apache HTTPDwith
BusinessObjectsEnterprise V3.1
Dan DonarskiKolb+Co. Technology Advisers
Apache HTTPBusinessObjects out of box installation◦ - Uses Tomcat application server
To process dynamic Java web pages
BO
Apache HTTPSeparated Application & Web Services◦ - Uses Apache HTTP web server
Static content◦ - Tomcat application server
To process Java web pages
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.
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
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
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
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
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
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
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
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
Step 5 - Test final distributed installation
◦ jsp-examples◦ http://apachehost/InfoViewApp
Apache HTTP