Win a copy of 97 Things Every Java Programmer Should Know this week in the Java in General forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Jeanne Boyarsky
  • Junilu Lacar
  • Henry Wong
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Frits Walraven
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Piet Souris
  • salvin francis
  • fred rosenberger

regarding ejbPassivate()

 
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?
 
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
 
    Bookmark Topic Watch Topic
  • New Topic