Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

why serialization is unpredictable in SFSB

 
Guru dhaasan
Ranch Hand
Posts: 126
Java Ubuntu VI Editor
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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??

 
Jayr Motta
Ranch Hand
Posts: 110
Google App Engine Google Web Toolkit Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Guru dhaasan
Ranch Hand
Posts: 126
Java Ubuntu VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Jayr
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic