Weblogic会话复制
问题描述:
我似乎无法让Weblogic的会话复制起作用。 我已经安装在我的web.xml中,使得所有的请求需要管理员凭据:Weblogic会话复制
<security-constraint>
<web-resource-collection>
<web-resource-name>redirect</web-resource-name>
<url-pattern>/*</url-pattern>
</web-resource-collection>
<auth-constraint>
<role-name>Admin</role-name>
</auth-constraint>
<user-data-constraint>
<transport-guarantee>CONFIDENTIAL</transport-guarantee>
</user-data-constraint>
</security-constraint>
<login-config>
<auth-method>FORM</auth-method>
<realm-name>myrealm</realm-name>
<form-login-config>
<form-login-page>
/login.jsp
</form-login-page>
<form-error-page>
/login.jsp
</form-error-page>
</form-login-config>
</login-config>
在我weblogic.xml中,我已经安装:
<session-descriptor>
<persistent-store-type>replicated_if_clustered</persistent-store-type>
</session-descriptor>
我的测试情况是两个托管服务器。
- 导航到我的网页。
- 关闭一台托管服务器。 (我目前连接到的那个)
- 发生故障转移,我被要求提供凭据。
我希望能无缝发生故障切换,而无需我再次登录。
答
尝试启用WebLogic管理控制台会话复制选项...
登录到管理
console -> goto cluster -> goto advanced -> tick Session replication.
注意:触摸.xml文件以更改任何属性并不是一种好的做法....