Posted on 2007-01-16 09:09
rednight 閱讀(1421)
評論(0) 編輯 收藏
問題描述:
通過HTTP提交EDI請求,當EDI處理時間超過了20分鐘后,就會看到在另一個weblogic server也接收到了這個EDI請求,重新處理這個報文.
如果報文處理時間更長,比如超過了50分鐘,就會發現這個報文被處理了3遍或5遍.
原因分析和解決方法:
When the Apache HTTP Server Plug-In attempts to connect to WebLogic Server, the plug-in uses several configuration
parameters to determine how long to wait for connections to the WebLogic Server host and, after a connection is
established, how long the plug-in waits for a response. If the plug-in cannot connect or does not receive a response,
the plug-in attempts to connect and send the request to other WebLogic Server instances in the cluster. If the
connection fails or there is no response from any WebLogic Server in the cluster, an error message is sent.
響應等待時間參數WLIOTimeoutSecs (http://e-docs.bea.com/wls/docs81/plugins/plugin_params.html#1149781.
按照BEA 推薦的,這個值應該設得大一些, 這個參數的缺省值為300s. 見下面:
<Location /EDIHandler>
SetHandler weblogic-handler
WebLogicCluster apc_app1wls1:7011,apc_app1wls2:7011
KeepAliveEnabled ON
WLIOTimeoutSecs 7200
</Location>