• 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 ...
  • Campbell Ritchie
  • Paul Clapham
  • Jeanne Boyarsky
  • Junilu Lacar
  • Henry Wong
  • Ron McLeod
  • Devaka Cooray
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Frits Walraven
  • Tim Holloway
  • Carey Brown
  • Piet Souris
  • salvin francis
  • fred rosenberger

database crash and exception

Ranch Hand
Posts: 49
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
When a client calls remove on an entity bean EJBObject, and if the database is down, is it considered as system failure resulting in RemoteException or will it result in RemoveException?
Author & Gold Digger
Posts: 7617
IntelliJ IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
As stated in section of the EJB spec, RemoveException is an application exception and should thus be thrown only to indicate an application level failure. Hence, if the database is down, a RemoteException should be thrown instead because this is not an application level issue.

And in case of local entites, EJBException will be thrown instead of RemoteException, of course
[ September 09, 2004: Message edited by: Valentin Crettaz ]
Squanch that. And squanch this tiny ad:
Devious Experiments for a Truly Passive Greenhouse!
    Bookmark Topic Watch Topic
  • New Topic