[
https://issues.apache.org/jira/browse/WICKET-6128?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15208035#comment-15208035
]
Martin Grigorov commented on WICKET-6128:
-----------------------------------------
Yes. If the session has expired, in contrast to manually invalidated, then the
thread locals are not available.
Try whether Application.get(String) will work. I expect it to work.
If this works then I suggest the following flow:
1) if Application.exists() then Application.get()
2) if -Dwicket.applicationName is not empty then use it: Application,get(value)
3) fallback to a static variable
WDYT ?
> Add metrics for currently active sessions
> -----------------------------------------
>
> Key: WICKET-6128
> URL: https://issues.apache.org/jira/browse/WICKET-6128
> Project: Wicket
> Issue Type: Improvement
> Components: wicket-metrics
> Affects Versions: 7.3.0
> Reporter: Martin Grigorov
> Assignee: Tobias Soloschenko
> Priority: Minor
>
> Add metric for the number of currently active Wicket sessions.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)