`
遠大前程
  • 浏览: 7288 次
  • 性别: Icon_minigender_1
  • 来自: 广州
最近访客 更多访客>>
社区版块
存档分类
最新评论

Session lifecycle events

阅读更多
The sesssin was created:
when the Container first creates a session,At this point ,the session is still considered new(in other words ,the client has not yet sent a request with the session ID)
the session was destroyed by calling the session's invalidate() method.

Attributes:

an attribute was added:
when some part of the app calls setAttribute() on session.

an attribute was removed:
when some part of the app calls removeAttribute() on the session.

an attribute was replaced
when some part of the app calls setAttribute() on the session,and the name of the attribute has already be bound to the session.

Migration:
The session is about to be passivated
when the Container is about to migrate (move) the session into a different VM.Called before the session moves ,so that attributes have a chance to prepare themselves for migration.

the session has been activated
When the Container has just migrated (moved)the session into a different VM.Called before any other part of the app can call getAttribute() on the session ,so the just-moved attributes have a chance to get themselves ready for access.

Only HttpSession objects move from one VM to another.
There is one ServletContext per VM,There is one ServletConfig per servlet,per VM.
But there is only one HttpSession object for a given session ID per web app,regardless of how many VM's the app is distributed across.

if the vendor does support distributed apps ,then the Container is required to migrate sessions across VMs.And that includes migrating session attributes as well
分享到:
评论

相关推荐

    tomcat7使用redis管理session需要的jar包

    on session expiration as well as webapp lifecycle) --> <!-- --> <Valve className="com.orangefunction.tomcat.redissessions.RedisSessionHandlerValve" /> host="localhost" port="6379" ...

    tomcat 采用msm连接memcached缓存session所需要的所有jar包下载

    on session expiration as well as webapp lifecycle) --> <!-- memcachedNodes="n1:192.168.1.65:11211" failoverNodes="n1" requestUriIgnorePattern=".*\.(ico|png|gif|jpg|css|js)$" ...

    Tomcat7和mysql连接池的配置方法和测试.pdf

    -- Uncomment this to enable Comet connection tracking (provides events on session expiration as well as webapp lifecycle) --> <!-- ...

    mcts70-515_microsoft_trainingkit.pdf

    - **Web Forms Lifecycle:** Understanding the sequence of events from request to response, including initialization, loading, rendering, and postback handling. - **Master Pages and Themes:** Design ...

    Hibernate Core 3.3.2.GA Javadocs

    2. **持久化生命周期(Persistence Lifecycle)**:文档会描述实体的生命周期,包括瞬时(Transient)、持久化(Persistent)、脱管(Detached)和托管(Managed)状态,以及如何在这些状态之间转换,如`Session`的`...

    Hibernate Reference Documentation3.1

    12. Interceptors and events 12.1. Interceptors 12.2. Event system 12.3. Hibernate declarative security 13. Batch processing 13.1. Batch inserts 13.2. Batch updates 13.3. The StatelessSession interface...

    Tomcat7和mysql连接池的配置方法和测试

    -- Uncomment this to enable Comet connection tacking (provides events on session expiration as well as webapp lifecycle) --> <!-- --> auth="Container" driverClassName="com.mysql.jdbc.Driver" ...

    open62541开发文档

    服务部分(Services)会介绍OPC UA的各种服务,如Secure Channel(安全通道服务集)、Session(会话服务集)、Discovery(发现服务集)、NodeManagement(节点管理服务集)、View(视图服务集)、Query(查询服务集...

    Hibernate中文详细学习文档

    12. 拦截器与事件(Interceptors and events) 12.1. 拦截器(Interceptors) 12.2. 事件系统(Event system) 12.3. Hibernate的声明式安全机制 13. 批量处理(Batch processing) 13.1. 批量插入(Batch inserts) ...

    Hibernate参考文档

    12. 拦截器与事件(Interceptors and events) 12.1. 拦截器(Interceptors) 12.2. 事件系统(Event system) 12.3. Hibernate的声明式安全机制 13. 批量处理(Batch processing) 13.1. 批量插入(Batch inserts) ...

    hibernate 体系结构与配置 参考文档(html)

    12. 拦截器与事件(Interceptors and events) 12.1. 拦截器(Interceptors) 12.2. 事件系统(Event system) 12.3. Hibernate的声明式安全机制 13. 批量处理(Batch processing) 13.1. 批量插入(Batch inserts) ...

    Hibernate+中文文档

    12. 拦截器与事件(Interceptors and events) 12.1. 拦截器(Interceptors) 12.2. 事件系统(Event system) 12.3. Hibernate的声明式安全机制 13. 批量处理(Batch processing) 13.1. 批量插入(Batch inserts) ...

    Hibernate_3.2.0_符合Java习惯的关系数据库持久化

    12. 拦截器与事件(Interceptors and events) 12.1. 拦截器(Interceptors) 12.2. 事件系统(Event system) 12.3. Hibernate的声明式安全机制 13. 批量处理(Batch processing) 13.1. 批量插入(Batch inserts) ...

    Hibernate 中文 html 帮助文档

    12. 拦截器与事件(Interceptors and events) 12.1. 拦截器(Interceptors) 12.2. 事件系统(Event system) 12.3. Hibernate的声明式安全机制 13. 批量处理(Batch processing) 13.1. 批量插入(Batch inserts) ...

    HibernateAPI中文版.chm

    12. 拦截器与事件(Interceptors and events) 12.1. 拦截器(Interceptors) 12.2. 事件系统(Event system) 12.3. Hibernate的声明式安全机制 13. 批量处理(Batch processing) 13.1. 批量插入(Batch inserts) ...

    hibernate3.2中文文档(chm格式)

    12. 拦截器与事件(Interceptors and events) 12.1. 拦截器(Interceptors) 12.2. 事件系统(Event system) 12.3. Hibernate的声明式安全机制 13. 批量处理(Batch processing) 13.1. 批量插入(Batch inserts) ...

    最全Hibernate 参考文档

    12. 拦截器与事件(Interceptors and events) 12.1. 拦截器(Interceptors) 12.2. 事件系统(Event system) 12.3. Hibernate的声明式安全机制 13. 批量处理(Batch processing) 13.1. 批量插入(Batch inserts) ...

    Hibernate3+中文参考文档

    12. 拦截器与事件(Interceptors and events) 12.1. 拦截器(Interceptors) 12.2. 事件系统(Event system) 12.3. Hibernate的声明式安全机制 13. 批量处理(Batch processing) 13.1. 批量插入(Batch inserts) ...

    hibernate 框架详解

    13. 拦截器与事件(Interceptors and events) 13.1. 拦截器(Interceptors) 13.2. 事件系统(Event system) 13.3. Hibernate的声明式安全机制 14. 批量处理(Batch processing) 14.1. 批量插入(Batch inserts...

Global site tag (gtag.js) - Google Analytics