[英]HazelCast-Active session list
I am using Hazelcast in Spring. 我在春天使用Hazelcast。 I want to know if there is a way through which i can print all the active session id in HazelCast.
我想知道是否有一种方法可以在HazelCast中打印所有活动会话ID。
Can someone provide me the information for the same ? 有人能为我提供同样的信息吗?
Regards. 问候。
If you have defined the below elements in your web.xml
then you can get the active session list directly from the IMap. 如果您已在
web.xml
定义了以下元素,那么您可以直接从IMap获取活动会话列表。
<!--
Name of the distributed map storing
your web session objects
-->
<init-param>
<param-name>map-name</param-name>
<param-value>my-sessions</param-value>
</init-param>
The IMap my-sessions
would be holding all the active sessions. IMap
my-sessions
将举行所有活动会话。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.