Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Why do we need to serialize the home?

 
Kalyana Sundaram
Ranch Hand
Posts: 94
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Why do we need to serialize the home?
We serialize the home, if we want to work with the same home when the machine is rebooted or the application is moved to another machine.

My question is What benefit actually we gain by doing this serialisation? Rather Why dont we just create a new home by doing a JNDI lookup() ?

Thanks in Advance
[ April 13, 2007: Message edited by: Kalyana Sundaram ]
 
Rahul Bhattacharjee
Ranch Hand
Posts: 2308
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
JNDI lookup is more performance intensive then serialization.Even storing the reference of the home interface is better than serializing it.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic