This content has been marked as final.
Show 5 replies
-
1. Re: Where does stateful session bean's state kept?
fhh Apr 14, 2007 3:56 PM (in response to thejavafreak)It is managed by the application server.
Regards
Felix -
2. Re: Where does stateful session bean's state kept?
thejavafreak Apr 15, 2007 9:53 PM (in response to thejavafreak)So it doesn't use HttpSession on the underlayer?
-
3. Re: Where does stateful session bean's state kept?
bakr.awad Apr 16, 2007 12:35 AM (in response to thejavafreak)Well it is kept at server side by the container, and it managed by the client through sessions.
As the user the user request a stateful session bean a unique id is created for him at the server side and when he request it again he uses this id.
that's all!!! -
4. Re: Where does stateful session bean's state kept?
thejavafreak Apr 16, 2007 3:29 AM (in response to thejavafreak)"bakr.awad" wrote:
Well it is kept at server side by the container, and it managed by the client through sessions.
As the user the user request a stateful session bean a unique id is created for him at the server side and when he request it again he uses this id.
that's all!!!
So each request to SFSB, the appserver will create one state eventhough the user logged in that requested the bean is the same user? So can I conclude that SFSB is not built on top of HttpSession? -
5. Re: Where does stateful session bean's state kept?
fhh Apr 16, 2007 4:40 AM (in response to thejavafreak)The fundamental idea of idea of Entperise Beans is to have two parts: The interface that is used to acces the bean and the implementation itself. The later is stored by the application server and might even be on a remote machine.
Where you store the handle of a stateful session bean is entirely up to you as a developer - but, yes, usually you would put into the http session.
Regards
Felix