http://docs.oracle.com/cd/E17904_01/web.1111/e13709/setup.htm

可配置的参数包括 ConnectTimeoutSecs ConnectRetrySecs 等. 另一篇文档参考: http://docs.oracle.com/cd/E14571_01/web.1111/e16435/plugin_params.htm

 

Table 10-1 Proxy Servlet Deployment Parameter

Parameter Usage
WebLogicCluster 
<init-param>
   <param-name>WebLogicCluster</param-name>
   <param-value>WLS1.com:port|WLS2.com:port
</param-value>

Where WLS1.com and WLS2.com are the host names of servers in the cluster, and port is a port where the host is listening for HTTP requests.

If you are using SSL between the plug-in and WebLogic Server, set the port number to the SSL listen port (see "Configuring the Listen Port") and set the SecureProxy parameter to ON.

SecureProxy 
<init-param> 
    <param-name>SecureProxy</param-name> 
   <param-value>ParameterValue</param-value> 
</init-param>

Valid values are ON and OFF.

If you are using SSL between the plug-in and WebLogic Server, set the port number to the SSL listen port (see "Configuring the Listen Port") and set the SecureProxy parameter to ON.

DebugConfigInfo 
<init-param> 
    <param-name>DebugConfigInfo</param-name> 
   <param-value>ParameterValue</param-value> 
</init-param>

Valid values are ON and OFF.

If set to ON, you can query the HttpClusterServlet for debugging information by adding a request parameter of ?__WebLogicBridgeConfig to any request. (Note: There are two underscore ( _ ) characters after the ?.) For security reasons, it is recommended that you set the DebugConfigInfo parameter to OFF in a production environment.

ConnectRetrySecs 

Interval in seconds that the servlet will sleep between attempts to connect to a server instance. Assign a value less than ConnectTimeoutSecs.

The number of connection attempts the servlet makes before returning an HTTP 503/Service Unavailable response to the client is ConnectTimeoutSecs divided by ConnectRetrySecs.

Syntax:

<init-param>
   <param-name>ConnectRetrySecs</param-name> 
   <param-value>ParameterValue</param-value> 
</init-param>
ConnectTimeoutSecs 

Maximum time in seconds that the servlet will attempt to connect to a server instance. Assign a value greater than ConnectRetrySecs.

If ConnectTimeoutSecs expires before a successful connection, an HTTP 503/Service Unavailable response is sent to the client.

Syntax:

<init-param>
<param-name>ConnectTimeoutSecs</param-name> 
   <param-value>ParameterValue</param-value> 
</init-param>
PathTrim 

String trimmed by the plug-in from the beginning of the original URL, before the request is forwarded to the cluster.

Syntax:

<init-param>
<param-name>PathTrim</param-name> 
   <param-value>ParameterValue</param-value> 
</init-param>

Example:

If the URL

http://myWeb.server.com/weblogic/foo

is passed to the plug-in for parsing and if PathTrim has been set to

/weblogic 

the URL forwarded to WebLogic Server is:

http://myWeb.server.com:7001/foo
TrimExt 

The file extension to be trimmed from the end of the URL.

Syntax:

<init-param>
<param-name>TrimExt</param-name> 
   <param-value>ParameterValue</param-value> 
</init-param>
clientCertProxy 

Specifies to trust client certificates in the WL-Proxy-Client-Cert header.

Valid values are true and false. The default value is false.

This setting is useful if user authentication is performed on the proxy server—setting clientCertProxy to true causes the proxy server to pass on the certs to the cluster in a special header, WL-Proxy-Client-Cert.

The WL-Proxy-Client-Cert header can be used by any client with direct access to WebLogic Server. WebLogic Server takes the certificate information from that header, trusting that is came from a secure source (the plug-in) and uses that information to authenticate the user.

For this reason, if you set clientCertProxy to true, use a connection filter to ensure that WebLogic Server accepts connections only from the machine on which the plug-in is running. See "Using Network Connection Filters" in Programming Security for Oracle WebLogic Server.

PathPrepend 

String that the servlet prepends to the original URL, after PathTrim is trimmed, before forwarding the URL to the cluster.

<init-param>
<param-name>PathPrepend</param-name> 
   <param-value>ParameterValue</param-value> 
</init-param>

<font style="font-size: 12pt">RoutingHandlerClassName</font>

Extends the proxy servlet to support Web service cluster routing. For more information, see "Managing Web Services in a Cluster" in Programming Advanced Features of JAX-WS Web Services for Oracle WebLogic Server.

<init-param>
<param-name>RoutingHandlerClassName</param-name> 
   <param-value>
      weblogic.wsee.jaxws.cluster.proxy.SOAPRoutingHandler
   </param-value> 
</init-param>

转载请注明:WebLogic Android 博客 » 如何配置WebLogic的集群HttpClusterServlet的超时重连等参数