| Summary: | Buffering ApplicationContext in SessionStore conflicts with serializable sessions | ||
|---|---|---|---|
| Product: | [RT] RAP | Reporter: | Rüdiger Herrmann <ruediger.herrmann> |
| Component: | RWT | Assignee: | Project Inbox <rap-inbox> |
| Status: | RESOLVED WONTFIX | QA Contact: | |
| Severity: | enhancement | ||
| Priority: | P3 | CC: | fr.appel |
| Version: | unspecified | ||
| Target Milestone: | --- | ||
| Hardware: | All | ||
| OS: | All | ||
| Whiteboard: | |||
| Bug Depends on: | |||
| Bug Blocks: | 342407 | ||
|
Description
Rüdiger Herrmann
(In reply to comment #0) > Ideally we would not buffer the ApplicationContext in the SessionStore at all. > The ApplicationContext that is buffered in the SessionStore is only accessed > once per request. Subsequent calls to ServiceContext#getApplicationContext() > use the value that is buffered in the applicationContext field. Is it really a > worthwhile performance gain if the ApplicationContext is buffered in the > SessionStore? Unfortunately it turned out that receiving the ApplicationContext from the underlying ServletContext is expensive (see: https://bugs.eclipse.org/bugs/show_bug.cgi?id=337787#c5). At the moment I cannot think of a better solution :-( (In reply to comment #1) > Unfortunately it turned out that receiving the ApplicationContext from the > underlying ServletContext is expensive (see: > https://bugs.eclipse.org/bugs/show_bug.cgi?id=337787#c5). At the moment I > cannot think of a better solution :-( Additionally see also: https://bugs.eclipse.org/bugs/show_bug.cgi?id=337787#c3 As it turned out, storing the ApplicationContext in the session is also necessary to have access to the ApplicationContext from background threads (with UICallback#runNonUIThreadWithFakeContext). This makes it impossible to give up buffering the ApplicationContext in the SessionStore |