File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes EJB and other Java EE Technologies and the fly likes session object survival after server crash Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Reply Bookmark "session object survival after server crash" Watch "session object survival after server crash" New topic
Author

session object survival after server crash

Rashmi Tambe
Ranch Hand

Joined: Aug 07, 2001
Posts: 418
What does it mean by following statement(ejb2.0 specs Section 6.1) :
Each session object has an identity which, in general, does not survive a crash and restart of the con-tainer,
although a high-end container implementation can mask container and server crashes to a remote client.

What does it mean by surviving after crash and restarting the server ? Is it related to state of a stateful session bean? does the previous state recovered? What happen to enetity beans after the crash???
[ August 28, 2003: Message edited by: Rashmi Tambe ]
Pradeep bhatt
Ranch Hand

Joined: Feb 27, 2002
Posts: 8876

What does it mean by surviving after crash and restarting the server ? Is it related to state of a stateful session bean? does the previous state recovered? What happen to enetity beans after the crash???

If the server crashes the state of session bean is lost. The previous state is lost. Entity beans are persistent so survive crashes.


Groovy
Rashmi Tambe
Ranch Hand

Joined: Aug 07, 2001
Posts: 418
Then what happens in following case?
although a high-end container implementation can mask container and server crashes to a remote client.
when the server starts after cras, does it create the session bean instance in above case?
Pradeep bhatt
Ranch Hand

Joined: Feb 27, 2002
Posts: 8876

Use clustering it is possible to survive session bean crashes.
Read this
http://edocs.bea.com/wls/docs61/cluster/object.html#1006807
 
I agree. Here's the link: http://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: session object survival after server crash
 
Similar Threads
Entity Object Identity
Stateful session bean persistance
when a session is invalidated ?
Confirmation Required
Entity Object Question