• 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Bear Bibeault
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Jj Roberts
  • Carey Brown
Bartenders:
  • salvin francis
  • Frits Walraven
  • Piet Souris

Transactions :confused:

 
Ranch Hand
Posts: 856
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
EJBException is thrown for local clients when the bean method throws a system exception.

Is my second statement true?
RemoteException is thrown for remote clients when the bean method throws a system exception.
 
Ranch Hand
Posts: 342
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Is my second statement true?
RemoteException is thrown for remote clients when the bean method throws a system exception.

No, usually an EJBException is thrown to the client (regardless it's remote or local) by the container (exception: a web service client receives a java.rmi.RemoteException).

It's a good idea to study the tables in core spec 14.3 for the various cases that can encounter.
 
Amandeep Singh
Ranch Hand
Posts: 856
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
No Ralph, look at page-364 of core specifications-

Throw RemoteException
to remote or web service
client; throw EJBException
to local client.
 
Ralph Jaus
Ranch Hand
Posts: 342
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
By "usually" I meant EJB 3 beans, of course, not EJB 2.1 beans.

To be serious, I'm glad to see that the reference for the tables helped.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic