Why are we having methods throwing non remote exceptions in the EJBObject interface of a bean?Will these exceptions be thrown to the client?
Help me!Help you!!!
posted 14 years ago
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.
Open Group Certified Distinguished IT Architect. Open Group Certified Master IT Architect. Sun Certified Architect (SCEA).