• 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 this correct? Exception question

 
Ranch Hand
Posts: 130
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
If a system exception is thrown and it is a subtype of runtimeException for example a NoSuchObjectLocalException then the client will get it as it is yes?
but if the exception is a subtype of RemoteException such as TransactionRequiredException, this will not be thrown to the client as a remoteException(if client is remote) but instead be thrown as just a RemoteException to remote clients and EjbException to local clients?
 
Author & Gold Digger
Posts: 7617
6
IntelliJ IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Does this answer your question ?
 
Ranch Hand
Posts: 163
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
When it comes to system exceptions,
Remote clients always gets NoSuchObjectException,TransactionRequiredException and TransactionRolledBackException.If anything else happens which are not covered by the above,you get RemoteException.

Atleast,this is how i have understood about exceptions

Cheers
Prashanth
 
Tontang Bei
Ranch Hand
Posts: 130
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
But Valentin, according to this pdf explanation, the only exception(system) the client can ever receive is the TransactionRolledBack<X>exception and for all else the client will get either a RemoteEx or EJBEx. Is this correct?
[ December 08, 2006: Message edited by: Tontang Bei ]
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic