Configuring ProxyServer using WebLogic7.0
I. Foreword: It is best to read the article first http://www.9cbs.net/develop/read_article.asp?id=16715 has a understanding of the WLS configuration cluster.
Second, suitable for reader objects: Developers who are interested in WebLogic for WebLogic project implementers for system stability and efficiency.
Third, the introduction: The problem left in front of the article is that from the customer's point of view, he can access you through two URLs to publish in the Cluster, http: // localhost: 7024 / browsegories or Nodeb on Nodea
HTTP: // localhost: 7025 / browsecategories did not provide a consistent access URL, while two Node in Cluster did not seem to provide load balancing, next to our task is to make a proxyserver, let it Come to complete the remaining tasks for us. A ProxyServer can provide a consistent portal and a good load balancing mechanism.
Four, examples: [Please pay attention to the case of the case to be unified]
Rough frame:
1. Now suppose the setting of the previous article has been completed, then start startWeblogic.cmd
2, use IE http: // localhost: 7001 / console: mydomainàserversàconfigure a new server: (a) Name: proxyserver
(b) Listen Port: 7021
Other default;
3, copy file startmanagedweblogic.cmd (notice is file startweblogic.cmd) into a file 1 StartProxyserver.bat
Modify the two lines in the file startnodea.bat
SET Server_Name =
Set admin_url =
for
SET Server_Name = ProxyServer
Set admin_url = http: // HONGGB: 7001
[Note: The above URL is your machine name]
4, this step is to be a simple proxyapp.war file
(A) Web.xml file content is: (critical part has been displayed with bold)
HttpClusterServlet
WebLogic.Servlet.Proxy.httpClusterServlet
WebLogicCluster
Localhost: 7024 | Localhost: 7025
DebugconfigInfo
On
HttpClusterServlet
/
HttpClusterServlet
* .jsp
HttpClusterServlet
* .htm
HttpClusterServlet
* .html
(b) WebLogic.xml content is:
(C) put the above two files in the web-inflicity, then package into proxyapp.war
5, release and test:
(A) Turn off the window started with StartWeblogic.cmd
(B) Start startWeblogic.cmd
(C) Start startnodea.bat
(d) Start startnodeb.bat
(e) Start StartProxyServer.bat
(f) Use IE to open http: // localhost: 7001 / console will release the browse.war file Undeploy in the front, then in Targets, select Clusters, select Proxyserver in Server, then deploy. (G) Test: Use IE to open http: // localhost: 7001 / console mydomainàserversà proxyserveràconnectionsàhttp
Default Web Application: Select ProxyApp
(h) Use IE to open http: // localhost: 7021 / browsecategories, you can see that you have published your app to ProxyServer.
In the wrong place, please also point out. Email: S00n@coscon.com
Two WAR files in the article: proxyapp.war and browse.war don't know how to upload.