This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes EJB and other Java EE Technologies and the fly likes stateful session bean Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "stateful session bean" Watch "stateful session bean" New topic
Author

stateful session bean

pradeep arum
Ranch Hand

Joined: Oct 01, 2003
Posts: 130
Hi all,
my question is about stateful session bean,how does the container remember the state of the conversation, I mean to rememeber the client is there anything in the stubs and skeletons that helps remember the bean instance on the server side? or is there something else?, what happens if I close the Browser or system shut down on the client side and restart again, can I still remember the conversation ? please explain.

thanks
Pradeep
--------------------

SCJP1.4,SCBCD
"Failure is not when you fall down; its only when you fail to get up again."


SCJP1.4,SCBCD
Failure is not when you fall down; its only when you fail to get up again.
Valentin Tanase
Ranch Hand

Joined: Feb 17, 2005
Posts: 704
Hi Praadep,

You might have a point here. Speaking from my experience with WebLogic, I don’t remember the documentation saying exactly how this is achieved. It provides detailed information about clustering any type of enterprise beans only. You might check the documentation for versions before 6, when the clustering was not introduced. If you are interested to get more information about clustering you can check this thread: http://www.coderanch.com/t/315844/EJB-JEE/java/Session
Without reading any specifications I bet that this is achieved in a very straightforward way: the SFSB stub appends one more attribute to every method. Kind of a serializable cookie that gets passed forward and back from the client to the server, over RMI or T3 protocol. This is my two cents bet and I can’t think of anything else that makes more sense.
Regards.


I think, therefore I exist -- Rene Descartes
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: stateful session bean
 
Similar Threads
When did the Stateful Sessionbean created?
question on statefull session bean
Confusion between PreDestroy and Remove annotation
When all @PreDestroy gets called?
Stateless beans and SessionSynchronization