• Post Reply Bookmark Topic Watch Topic
  • New Topic

non remote expection in beans

 
william kane
Ranch Hand
Posts: 260
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Why are we having methods throwing non remote exceptions in the EJBObject interface of a bean?Will these exceptions be thrown to the client?
 
Ajith Kallambella
Sheriff
Posts: 5782
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Non remote exceptions are typically application exceptions that clients can easily recover from. And yes, these are reported as is to the client giving client a chance to recover. On the contrary, RemoteExceptions representing system exceptions cause several things to happen automatically such as rolling back a transaction. Because of this difference, app exceptions should only represent business errors and not system problems.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!