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
分享到:
相关推荐
on session expiration as well as webapp lifecycle) --> <!-- --> <Valve className="com.orangefunction.tomcat.redissessions.RedisSessionHandlerValve" /> host="localhost" port="6379" ...
on session expiration as well as webapp lifecycle) --> <!-- memcachedNodes="n1:192.168.1.65:11211" failoverNodes="n1" requestUriIgnorePattern=".*\.(ico|png|gif|jpg|css|js)$" ...
-- Uncomment this to enable Comet connection tracking (provides events on session expiration as well as webapp lifecycle) --> <!-- ...
- **Web Forms Lifecycle:** Understanding the sequence of events from request to response, including initialization, loading, rendering, and postback handling. - **Master Pages and Themes:** Design ...
2. **持久化生命周期(Persistence Lifecycle)**:文档会描述实体的生命周期,包括瞬时(Transient)、持久化(Persistent)、脱管(Detached)和托管(Managed)状态,以及如何在这些状态之间转换,如`Session`的`...
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...
-- Uncomment this to enable Comet connection tacking (provides events on session expiration as well as webapp lifecycle) --> <!-- --> auth="Container" driverClassName="com.mysql.jdbc.Driver" ...
服务部分(Services)会介绍OPC UA的各种服务,如Secure Channel(安全通道服务集)、Session(会话服务集)、Discovery(发现服务集)、NodeManagement(节点管理服务集)、View(视图服务集)、Query(查询服务集...
12. 拦截器与事件(Interceptors and events) 12.1. 拦截器(Interceptors) 12.2. 事件系统(Event system) 12.3. Hibernate的声明式安全机制 13. 批量处理(Batch processing) 13.1. 批量插入(Batch inserts) ...
12. 拦截器与事件(Interceptors and events) 12.1. 拦截器(Interceptors) 12.2. 事件系统(Event system) 12.3. Hibernate的声明式安全机制 13. 批量处理(Batch processing) 13.1. 批量插入(Batch inserts) ...
12. 拦截器与事件(Interceptors and events) 12.1. 拦截器(Interceptors) 12.2. 事件系统(Event system) 12.3. Hibernate的声明式安全机制 13. 批量处理(Batch processing) 13.1. 批量插入(Batch inserts) ...
12. 拦截器与事件(Interceptors and events) 12.1. 拦截器(Interceptors) 12.2. 事件系统(Event system) 12.3. Hibernate的声明式安全机制 13. 批量处理(Batch processing) 13.1. 批量插入(Batch inserts) ...
12. 拦截器与事件(Interceptors and events) 12.1. 拦截器(Interceptors) 12.2. 事件系统(Event system) 12.3. Hibernate的声明式安全机制 13. 批量处理(Batch processing) 13.1. 批量插入(Batch inserts) ...
12. 拦截器与事件(Interceptors and events) 12.1. 拦截器(Interceptors) 12.2. 事件系统(Event system) 12.3. Hibernate的声明式安全机制 13. 批量处理(Batch processing) 13.1. 批量插入(Batch inserts) ...
12. 拦截器与事件(Interceptors and events) 12.1. 拦截器(Interceptors) 12.2. 事件系统(Event system) 12.3. Hibernate的声明式安全机制 13. 批量处理(Batch processing) 13.1. 批量插入(Batch inserts) ...
12. 拦截器与事件(Interceptors and events) 12.1. 拦截器(Interceptors) 12.2. 事件系统(Event system) 12.3. Hibernate的声明式安全机制 13. 批量处理(Batch processing) 13.1. 批量插入(Batch inserts) ...
12. 拦截器与事件(Interceptors and events) 12.1. 拦截器(Interceptors) 12.2. 事件系统(Event system) 12.3. Hibernate的声明式安全机制 13. 批量处理(Batch processing) 13.1. 批量插入(Batch inserts) ...
12. 拦截器与事件(Interceptors and events) 12.1. 拦截器(Interceptors) 12.2. 事件系统(Event system) 12.3. Hibernate的声明式安全机制 13. 批量处理(Batch processing) 13.1. 批量插入(Batch inserts) ...
13. 拦截器与事件(Interceptors and events) 13.1. 拦截器(Interceptors) 13.2. 事件系统(Event system) 13.3. Hibernate的声明式安全机制 14. 批量处理(Batch processing) 14.1. 批量插入(Batch inserts...