2011-07-14 37 views
0

我只是想知道這是否是一種正常行爲。我有沒有人訪問服務器實例24/7大約兩倍的第二新的上下文..接縫啓動上下文幾秒鐘甚至空閒

13:17:27,217 INFO [Contexts] starting up: org.jboss.seam.security.ruleBasedPermissionResolver 
13:17:27,218 INFO [Contexts] starting up: org.jboss.seam.security.identity 
13:17:27,218 INFO [Contexts] starting up: org.jboss.seam.web.session 
13:17:27,713 INFO [Contexts] starting up: org.jboss.seam.security.ruleBasedPermissionResolver 
13:17:27,713 INFO [Contexts] starting up: org.jboss.seam.security.identity 
13:17:27,713 INFO [Contexts] starting up: org.jboss.seam.web.session 

所以我應該調整日誌警告的接縫或者是有什麼錯嗎?

thx

+1

當有人調用'Contexts.startup(ScopeType.SESSION)'時,會生成這些日誌消息。 AFAIK Seam在'SeamListener.sessionCreated(HttpSessionEvent)'中調用它,換句話說,它通常只在存在http活動時發生 - 用戶正在創建會話。你確定沒有活動嗎? – Tair

回答

0

我只列出了對頁面的請求。如果只有靜態資源被訪問,它不在jboss日誌中。

在類IdentityRequestWrapper或IdentityWrapper(取決於接縫版本)在JBoss-seam.jar我取代

identity = (Identity) request.getSession(). 
    getAttribute(Seam.getComponentName(Identity.class)); 

HttpSession session = request.getSession(false); 
if(session != null){ 
identity = (Identity) session. 
    getAttribute(Seam.getComponentName(Identity.class)); 
} 

會話不再對靜態內容

創建