Hi,
Here is a Simple demonstration of using Apache Proxy Plug-In as a repository for caching Static Contents like Image files And Html pages…this helps us in improving the performance of the Backend Servers.
In the following demonstration we will see how we can Configure Apache plugin with WebLogic Server- 10.3.2, Same step can be followed with any other version of weblogic Server as well.
Step1).
Install Apache proxy plugin in your Box… This is quite simple step.
Step2).
Copy the “mod_wl_20.so” or “mod_wl_22.so” file from the following location of your WebLogic Server (E:\bea10_3_2\wlserver_10.3\server\plugin\win\32) … I m using WLS10.3.2 … I am choosing “mod_wl_20.so” for this demonstration …you can choose any of the file based on your requirements…
Step3).
Goto the Apache Installation directory in your Box and then Paste “mod_wl_20.so” in the following location “C:\Program Files\Apache Group\Apache2\modules”
Step4).
Move inside the “C:\Program Files\Apache Group\Apache2\conf” directory to configure the Apache to provide the “LoadModule” information inside the “httpd.conf” file:
Example: LoadModule weblogic_module modules/mod_wl_20.so
Step5).
Now add the If Module information inside “httpd.conf” file to point to WebLogic Server which is running on localhost:7001 ….Just add the following line of code at the bottom of the “httpd.conf” file:
—–If you have a WebLogic Cluster than you can use the below configuration as well—-
Step7).
Now Just test whether you are able to hit the WebLogic Server through Apache or not:
Step8).
Step9).
Now Add a Folder “TestAppOne” iin the following location: ”C:\Program Files\Apache Group\Apache2\htdocs” with your static contents inside it….Example:
Step10).
Restart your Apache Plugin and then hit the following URL:
http://localhost/TestAppOne/welcome.html
.
.
Thanks
Jay SenSharma









August 4th, 2010 on 4:44 pm
Hello All-
I am new to Weblogic and need help from this forum. Forgive me for my ignorance. I am learning.
Below is a brief about the context and the issues that we are facing:
Background
=======
1. We have Oracle Service Bus (OSB) installed on top of Oracle Weblogic Server (ver 10.3). In OSB we have developed a proxy service that listens to a JMS queue for an incoming message
2. The Weblogic environment is a cluster having 2 managed servers listening to different ports and it is front-ended by a Apache Load Balancer.
3. Our requirement is to post an XML message from a Java client to the JMS queue which will then initiate the proxy service deployed. We are using t3 protocol to post the message from the client to the JMS queue
Issue
====
1. To post an XML message from the client, how do we give the address of the JMS queue in the clustered environment to enable failover/loadbalancing if one managed server goes down. I understand from your earlier posts in this forum that directly hitting the JMS queue on a particular managed server will not enable failover/loadbalancing in case one of them goes down
2. Do we need to modify any config file in the Apache Proxy Plugin?
3. Do we need to provide the address of the Apache proxy in the client to send the message?
Kindly clarify and let me know me know if you need any additional information.
Greatly appreciate your help!!!
Regards,
Dibya
August 4th, 2010 on 5:09 pm
Hi Dibya,
You dont need any proxy (Because as u have mentioned that u Want to use T3 Protocol only…in your JavaClient program…Any Proxy WebServer willnot understand the T3 protocol they understand only Http/Https Protocols.)
But if you want to use Http protocol at JavaClient end then yes u are free to use the Apache proxy as well…
In the following program u will see a QueueSend.java program with following code:
http://www.weblogic-wonders.com/weblogic/2010/06/26/basic-jms-demo-using-weblogic-queue/
————————–
public static void main(String[] args) throws Exception {
if (args.length != 1) {
System.out.println(“Usage: java QueueSend WebLogicURL”);
return;
}
InitialContext ic = getInitialContext(args[0]); // U need to pass Cluster Address here
QueueSend qs = new QueueSend();
qs.init(ic, QUEUE);
readAndSend(qs);
qs.close();
}
————————–
In the above code u need to just pass the ClusterAddress to get the initialContext object like following:
InitialContext ic = getInitialContext(“t3://localhost:7002,localhost:7003″);
Suppose your 2 ManagedServers (Which are part of a Cluster) are running on localhost:7002 and localhost:7003 addresses. Passing the ClusterAddress will take care of LoadBalancing and Failover automatically.
.
.
Keep Posting
Thanks
Jay SenSharma
August 4th, 2010 on 5:45 pm
Thanks Jay!! I will try it out and let you know the results.
Thanks for your quick response.
Best Regards,
Dibya