posted 20 years ago
Hi experts,
1 A question about stateful session bean: A client invokes a stateful session bean, then the client times out. Will the stateful session bean instance will be removed by container? Or just will be passivated? Does it depend on different vender?
2 Please refer to point 1, if the instance of the stateful session bean is passivated after client timed out, how to get the stub of the same stateful session bean instance again for another client?
This question always makes me confused. For example, for browser/server mode, user do something but not commit on Monday, then he logout or HttpSession time out(30 minutes). On Tuesday, he login and he also hope he can see his last not-committed state and continue his operation. How to achieve it? A specilist told me using stateful session bean instead. But on Monday, if his stateful session bean instance is removed after client times out, how to get it again on Tuesday?
Please give me details about this case?
3 Another question about ejbRemove, if container decide to kill a passivated bean instance(stateful session bean or entity bean), I want to know, whether container invokes ejbRemove directly, or invokes ejbActivate then invokes ejbRemove?
4 How the container know the client times out? Where can I find the configuration? Or I can set it as NEVER time out.