Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Do I need to mark non-serializable variables as transient?  RSS feed

 
Julien Martin
Ranch Hand
Posts: 384
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,
I am currently working on stateful session beans and would like to know whether I need to mark all my non-serializable variables as transient?
Thanks in advance,
Julien Martin.
 
Brian Tinnel
Ranch Hand
Posts: 69
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Or make sure to set them to null during ejbPassivate.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!