• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

is application exception is wrapped in remote exception?

 
Ranch Hand
Posts: 257
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
if client access EJB remotely and if there is application exception then how it is thrown to client. does it will be wrapped automatically in remoteException or it will be thrown as application exception only?
 
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
An application exception is an exception defined in the throws clause of a method of the enterprise Bean�s home and component interfaces, other than the java.rmi.RemoteException.
An application exception thrown by an enterprise bean instance should be reported to the client precisely (i.e., the client gets the same exception).
� An application exception thrown by an enterprise bean instance should not automatically rollback a client�s transaction. The client should typically be given a chance to recover a transaction
from an application exception.

Enterprise bean business methods use application exceptions to inform the client of abnormal application-
level conditions, such as unacceptable values of the input arguments to a business method. A client
can typically recover from an application exception. Application exceptions are not intended for reporting
system-level problems.
For example, the Account enterprise bean may throw an application exception to report that a debit
operation cannot be performed because of an insufficient balance. The Account bean should not use an
application exception to report, for example, the failure to obtain a database connection.
 
moose poop looks like football shaped elk poop. About the size of this tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic