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

database crash and exception

 
Shreyas Reddy
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?
Thanks,
 
Valentin Crettaz
Gold Digger
Sheriff
Posts: 7610
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
As stated in section 10.5.8.5 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 ]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic