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

T or F?

 
Ramakrishna Allam
Ranch Hand
Posts: 34
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
A system exception thrown from a session bean instance's method results in the container removing the session bean instance and not calling ebjRemove() on the instance . Is this true or false?
 
Mikalai Zaikin
Ranch Hand
Posts: 3371
12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I would say "true"
 
Rashmi Tambe
Ranch Hand
Posts: 418
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
YES, it is true.
Refer Para 7.6.3 Missed ejbRemove() calls from ejb specs:
The Bean Provider cannot assume that the Container will always invoke the ejbRemove() method on
a session bean instance. The following scenarios result in ejbRemove() not being called on an
instance:
• A crash of the EJB Container.
A system exception thrown from the instance’s method to the Container.
• A timeout of client inactivity while the instance is in the passive state. The timeout is speci-fied
by the Deployer in an EJB Container implementation specific way.
 
Ramakrishna Allam
Ranch Hand
Posts: 34
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for the input
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic