• Post Reply Bookmark Topic Watch Topic
  • New Topic

transient field in slsb

 
Mark Lybarger
Ranch Hand
Posts: 72
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
is there an advantage to marking fields transient in a slsb?
 
Roger Chung-Wee
Ranch Hand
Posts: 1683
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
No, because session beans are not serialized. Stateful session beans may be passivated, where the rules are similar - but not quite the same - as serialization. And one of those rules is that transient variables in a passivated bean are not guaranteed to be brought back with default values on activation.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!