Sunday, January 19, 2014

Integrate Apache Web Server and Oracle Weblogic Application Server

In this interesting post we will discuss see how to integrate Oracle Weblogic Application Server with Apache Web (HTTP) Server in detailed manner.
What is the main use of Oracle WebLogic Web Server Plugins?
1. Oracle WebLogic Web Server Plug-Ins are plugins for popular Web Servers like Apache HTTP Server, iPlanet Web Server, Microsoft Internet Information Server (IIS).
2. This plugin diverts the incoming HTTP(s) requests within the Web Server and reverse proxies the incoming requests across WebLogic Server Clusters.
Prerequisites:
1] Download and Install Apache Web Server (2.2)
2] Download and Install Oracle Weblogic Server 12c
3] Download Oracle Weblogic Web Server Plugins
4] Deploy some sample Web Applications to the application server cluster environments
image
Steps Involved:
1] Download the Oracle Weblogic Web Server plugin from Oracle website.
http://www.oracle.com/technetwork/middleware/ias/downloads/wls-plugins-096117.html
2] Unzip the plugin downloaded.
image
3] This archived file have plugins for the all the platforms (Linux, Solaris, AIX, HP-UX, Windows). Select the desired platform based on your need. I’m using Apache Web server which is running in Linux machine, so following is the desired plugin I’m looking for.
à WLSPlugin12c-64bit-Apache2.2-Linux64-x86_64.zip
image
4] Now unarchive the WLSPlugin12c-64bit-Apache2.2-Linux64-x86_64.zip file like below.
image
5] Copy the mod_wl.so to modules folder of the apache web server.
image
6] Copy the libclntsh.so and libnnz11.so files to lib folder of the apache web server.
image
7] The plugin installation setup part is done, now we need to proceed with configuration part.
à Load the mod_wl.so module to the Apache Web Server
à Set all the required web server parameters
à Get the application servers IP Address and Port numbers
image
Applications are deployed to the 3 managed servers mentioned above.
image
So now specify that in the WebLogicCluster parameters list as 192.168.56.1:7001,192.168.56.1:4003 and 192.168.56.1:4005. Use the same Context root (/Monioring_Application) that we mentioned in application.xml deployment descriptors in <Location> tag.
image
8] Last step but not least step, include the mod_wl.conf in the main Apache httpd.conf file like below.
image
9] In order to the changes to reflect, restart the apache web server is required.
image
10] Access the web application deployed to Oracle Weblogic Application server using the Apache Web Server.
à Using Application Servers IP_Address:Port
image
--> Through Apache Web Server IP_Address:Port. Now the incoming HTTP(s) requests within the Apache Web Server and reverse proxies the incoming requests across WebLogic Server Clusters 192.168.56.1:7001, 192.168.56.1:4003 & 192.168.56.1:4005 automatically by web server.

image

No comments:

Post a Comment