Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
Win a copy of Pragmatic AI this week in the Artificial Intelligence 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:
  • Jeanne Boyarsky
  • Liutauras Vilda
  • Campbell Ritchie
  • Tim Cooke
  • Bear Bibeault
Sheriffs:
  • Paul Clapham
  • Junilu Lacar
  • Knute Snortum
Saloon Keepers:
  • Ron McLeod
  • Ganesh Patekar
  • Tim Moores
  • Pete Letkeman
  • Stephan van Hulst
Bartenders:
  • Carey Brown
  • Tim Holloway
  • Joe Ess

PreDestroy is not called during passivation and timeout  RSS feed

 
Ranch Hand
Posts: 1695
12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
On p.38 of Frits' notes,


3.13 PreDestroy not called:
1. a crash of the EJB container
2. a system exception thrown from the instance's method to the container



Also, according to Ethuware,

If a (stateful) bean is passivated and if the timeout (@StatefulTimeout) occurs , the container does not call the PreDestroy method.


This point has been shown on p.21 of Frits notes.
 
Creator of Enthuware JWS+ V6
Bartender
Posts: 3117
259
Android Chrome Eclipse IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

On p.38 of Frits' notes,


That is the PreDestroy in the context of a MessageDriven bean.

On p.17 (and in the graph on p.21) you will find the following summary for Session Beans:

2.1.9 Predestroy not called
1. A crash of the EJB container.
2. A system exception thrown from the instance’s method to the container.
3. A timeout of client inactivity while the instance is in the passive state. (Stateful SB only)

 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!