my dog learned polymorphism*
The moose likes EJB Certification (SCBCD/OCPJBCD) and the fly likes why serialization is unpredictable in SFSB Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Certification » EJB Certification (SCBCD/OCPJBCD)
Bookmark "why serialization is unpredictable in SFSB" Watch "why serialization is unpredictable in SFSB" New topic
Author

why serialization is unpredictable in SFSB

Guru dhaasan
Ranch Hand

Joined: Sep 13, 2006
Posts: 126

Hi,

I was going thro the EJB 3.1 book (O'Reilly)
In that the author is mentioning that (these are not the exact words in the book, this is my own understanding of the text)
"in SFSB when its becoming activated (after coming out of passivated pool), serialized objects, unlike their original norm, will not return the default values like int will not guaranteed to return 0 and object is not guaranteed to return null"


Whether my understanding is correct?? If yes, why its designed that way in EJB??


Thanks, Shiv
SCJP, OCE - JSP & Servlets Developer
Jayr Motta
Ranch Hand

Joined: Jul 30, 2010
Posts: 110

I wonder the same. I'm also reading the book and when I've read this I couldn't understand, but I got over it. Let's ask this on stackoverflow, maybe if we keep a topic in two places it increases the chances of getting a good answer!

Here is the link: http://stackoverflow.com/questions/6831751/stateful-session-beans-dont-get-default-values-after-deserialization


Feel free to ask me anything!
www.BlackBeltFactory.com/ui#!/ref=jmotta, SCJP 6, OCWCD JEE5, OCE EJB JEE6
Guru dhaasan
Ranch Hand

Joined: Sep 13, 2006
Posts: 126

Thanks Jayr
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: why serialization is unpredictable in SFSB
 
Similar Threads
finalize method
Caching SFSB handle
shopping cart for FBN
partII: stateful session bean is necessary to serve as a booking cart?
Session beans equal method