EJB 3.X Stateful session bean如何维护状态?
How EJB 3.X Stateful session bean maintains state?
我是 EJB 的新手。我了解 HTTPSession 是如何维护的(所有 cookies funda)。互联网上的所有资源都说“Stateful Session Bean Maintenance session(remembers client)”。但我找不到
的答案
Stateful Session如何维护状态?
Oracle 文档说
The state of an object consists of the values of its instance
variables. In a stateful session bean, the instance variables
represent the state of a unique client/bean session. Because the
client interacts (“talks”) with its bean, this state is often called
the conversational state.
谢谢。
实例是在您第一次获得对 bean 的引用时创建的,您只能使用此引用来维护状态。
调用@Remove注解的方法或者bean实例超时,实例被销毁
来源,EJB JSR:download.oracle.com/otndocs/jcp/ejb-3.1-pfd-oth-JSpec。第4.6章
我是 EJB 的新手。我了解 HTTPSession 是如何维护的(所有 cookies funda)。互联网上的所有资源都说“Stateful Session Bean Maintenance session(remembers client)”。但我找不到
的答案Stateful Session如何维护状态?
Oracle 文档说
The state of an object consists of the values of its instance variables. In a stateful session bean, the instance variables represent the state of a unique client/bean session. Because the client interacts (“talks”) with its bean, this state is often called the conversational state.
谢谢。
实例是在您第一次获得对 bean 的引用时创建的,您只能使用此引用来维护状态。 调用@Remove注解的方法或者bean实例超时,实例被销毁
来源,EJB JSR:download.oracle.com/otndocs/jcp/ejb-3.1-pfd-oth-JSpec。第4.6章