File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "stateful session bean" Watch "stateful session bean" New topic

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.


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

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:
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.

I think, therefore I exist -- Rene Descartes
I agree. Here's the link:
subject: stateful session bean
It's not a secret anymore!