HttpSessionActivationListener的用法?

yi_zhangy 2005-03-09 10:46:38
• A container notifies all of the session attributes that implement the HttpSessionActivationListener interface when it migrates the session.
scwcd kit上面的一段话:字面意思是说当session在多个容器中移动的时候会触发所有session attribute 中实现HttpSessionActivationListener的对象。(我自己理解)

但我觉得应该是触发配置在web.xml中的HttpSessionActivationListener对象。如果两个容器直接移动
那2个容器配置的HttpSessionActivationListener是不是都应该被触发呢?
你们看怎么解释?
...全文
83 点赞 收藏 2
写回复
2 条回复
切换为时间正序
当前发帖距今超过3年,不再开放新的回复
发表回复
yi_zhangy 2005-03-09
大家回答一下咯
回复
yi_zhangy 2005-03-09
8. Which of the following is not a requirement of a distributable web application?
(Select one)
a It cannot depend on the notification events generated due to changes in the
ServletContext attribute list.
b It cannot depend on the notification events generated due to changes in the
session attribute list.
c It cannot depend on the notification events generated when a session is activated
or passivated.
d It cannot depend on the notification events generated when ServletContext
is created or destroyed.
e It cannot depend on the notification events generated when a session is created
or destroyed.
应该选什么?我觉得是c 你们怎么看?
回复
发帖
Java EE
创建于2007-09-28

6.6w+

社区成员

J2EE只是Java企业应用。我们需要一个跨J2SE/WEB/EJB的微容器,保护我们的业务核心组件(中间件),以延续它的生命力,而不是依赖J2SE/J2EE版本。
申请成为版主
帖子事件
创建了帖子
2005-03-09 10:46
社区公告
暂无公告