This week's book giveaway is in the Spring forum.
We're giving away four copies of Spring in Action (5th edition) and have Craig Walls on-line!
See this thread for details.
Win a copy of Spring in Action (5th edition) this week in the Spring 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
  • Bear Bibeault
  • Devaka Cooray
  • Liutauras Vilda
  • Jeanne Boyarsky
Sheriffs:
  • Knute Snortum
  • Junilu Lacar
  • paul wheaton
Saloon Keepers:
  • Ganesh Patekar
  • Frits Walraven
  • Tim Moores
  • Ron McLeod
  • Carey Brown
Bartenders:
  • Stephan van Hulst
  • salvin francis
  • Tim Holloway

PreDestroy is not called during passivation and timeout  RSS feed

 
Ranch Hand
Posts: 1703
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
Posts: 3181
276
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)

 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!