Win a copy of Java Mock Exams (software) this week in the Programmer Certification (OCPJP) 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
 
Happiness is not a goal ... it's a by-product of a life well lived - Eleanor Roosevelt. Tiny ad:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!