HttpClusterServlet 配置方法:
创建一个新的weblogic Server
创建一个新的web应用:
修改web.xml
<servlet>
<servlet-name>HttpClusterServlet</servlet-name>
<servlet-class>weblogic.servlet.proxy.HttpClusterServlet</servlet-class>
<init-param>
<param-name>WebLogicCluster</param-name>
<param-value>172.17.252.72:7113|172.17.252.75:7110</param-value>
</init-param>
<init-param>
<param-name>DebugConfigInfo</param-name>
<param-value>ON</param-value>
</init-param>
</servlet>
<servlet-mapping>
<servlet-name>HttpClusterServlet</servlet-name>
<url-pattern>/*</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>HttpClusterServlet</servlet-name>
<url-pattern>*.jsp</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>HttpClusterServlet</servlet-name>
<url-pattern>*.htm</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>HttpClusterServlet</servlet-name>
<url-pattern>*.html</url-pattern>
</servlet-mapping>
修改weblogic.xml
<wls:context-root>/</wls:context-root>
可以通过访问新建的server,利用http://172.17.252.72:7116/t.jsp?__WebLogicBridgeConfig来验证配置有没有成功
依照http://download.oracle.com/docs/cd/E13222_01/wls/docs51/cluster/overview.html中的描述,HttpClusterServlet 只支持Round-robin策略,即同一个Session发会到同一个Server上