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是不是都应该被触发呢?
你们看怎么解释?
...全文
145 2 打赏 收藏 转发到动态 举报
AI 作业
写回复
用AI写文章
2 条回复
切换为时间正序
请发表友善的回复…
发表回复
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 你们怎么看?

67,549

社区成员

发帖
与我相关
我的任务
社区描述
J2EE只是Java企业应用。我们需要一个跨J2SE/WEB/EJB的微容器,保护我们的业务核心组件(中间件),以延续它的生命力,而不是依赖J2SE/J2EE版本。
社区管理员
  • Java EE
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧