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??
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!