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

regarding ejbPassivate()

 
raghu vadranam
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What will happen if we leave non serializable things like Database connections with out closing or making null? will ejbPassivate() works or not?
 
Paulo Asterio Nunes
Ranch Hand
Posts: 63
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi raghu,

by the espec, the container may destroy bean instance if the instance does not meet the requirements for serialization after ejbPassivate, therefore the container may throw an exception if you leave non serializable things like you sad !!! ...

hope this help.

Paulo Nunes (Brazil)
MCP OCP IBM285 SCJP 1.4 SCWCD 1.4 SCBCD 1.3
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic