• Post Reply Bookmark Topic Watch Topic
  • New Topic

EJB3 removal timeout  RSS feed

 
Jeff Storey
Ranch Hand
Posts: 230
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In JBoss, the default removal timeout of a SF session bean is 0 (infinite). It seems like infinite would generally be a bad choice since it would cause a bean to never be garbage collected. Would there be a good reason to make this default infinite, or to ever use infinite? Thanks.

Jeff
 
Jeanne Boyarsky
author & internet detective
Sheriff
Posts: 36446
454
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Jeff,
I can't think of a good business reason. The only thing I can think of is when the amount of time is unknown and the developer doesn't want to hard code a randomly high number.
 
Jeff Storey
Ranch Hand
Posts: 230
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I tend to agree. Seems like a poor choice for a default value though.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!