• 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
  • Tim Cooke
  • Liutauras Vilda
  • Jeanne Boyarsky
  • paul wheaton
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Henry Wong
Saloon Keepers:
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Tim Moores
  • Mikalai Zaikin
Bartenders:
  • Frits Walraven

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 ]
 
I will suppress my every urge. But not this shameless plug:
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
reply
    Bookmark Topic Watch Topic
  • New Topic