2017-09-14 175 views
0

基於內存的會話持久性在Weblogic(12c)中似乎不起作用。基於Weblogic內存的會話持久性

請注意:我正在運行本地基本單服務器(無羣集)設置。

如果我下面的代碼片段添加到我的weblogic.xml:

<session-descriptor>  
    <persistent-store-type>memory</persistent-store-type>  
</session-descriptor>  

在重新部署會話bean沒有堅持。特別是我有一個Spring MVC應用程序,和Spring形式豆走了,因爲下面的錯誤承擔的頁面結果的任何行動:

####<Sep 8, 2017 1:28:38 PM MDT> <Error> <HTTP> <D-864597> <AdminServer> <[ACTIVE] ExecuteThread: '12' for queue: 'weblogic.kernel.Default (self-tuning)'> <<WLS Kernel>> <> <bdf6551d-4eb8-454d-aa08-6f5f7c424785-0000012d> <1504898918422> <[severity-value: 8] [rid: 0] [partition-id: 0] [partition-name: DOMAIN] > <BEA-101017> <  
.  
.  
.  
 Root cause of ServletException.  
org.springframework.web.HttpSessionRequiredException: Expected session attribute '<name_of_spring_form_bean>'  

然而有趣的是,基於文件的會話持久性似乎工作,因爲如果我在我的weblogic.xml中添加以下片段

<session-descriptor>  
    <persistent-store-type>file</persistent-store-type>  
</session-descriptor>  

它按預期工作。

我錯過了什麼嗎?

回答

0

標記persistent-store-type的「memory」值表示「沒有會話複製」。如果希望會話在羣集服務器中保持不變,則「正在複製」該值。

+0

我在原始問題中沒有提及它,但現在會更新它。我只是運行一個基本的本地單服務器(無羣集)設置,所以在我的情況下「複製」不適用。 – Pawel