• 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
  • paul wheaton
  • Ron McLeod
  • Jeanne Boyarsky
Sheriffs:
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
Bartenders:

throw RemoteException to the client?

 
Bartender
Posts: 2453
13
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
According to the JSR 318,
1. RemoteException is deprecated since EJB 1.1.
2. web service client of a bean gets RemoteException when a bean throws a system exception.
3. a business method of a session bean and the onMessage method of a MDB do not throw RemoteException.

I am wondering about 2. If RemoteException is not used anymore, why the web service client gets RemoteException ? For backward compatibility? Or, with EJB 3.1, all the beans throw EJBException that wraps any system exception ?

Enthuware mock exam points out that a system exception is wrapped as a RemoteException and being thrown to the remote client.
I am waiting for their reply and ask this question on this forum.
 
Creator of Enthuware JWS+ V6
Posts: 3412
320
Android Eclipse IDE Chrome
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

For backward compatibility?


Yes, that is the only reason!
 
I can't renounce my name. It's on all my stationery! And hinted in this tiny ad:
Clean our rivers and oceans from home
https://www.kickstarter.com/projects/paulwheaton/willow-feeders
reply
    Bookmark Topic Watch Topic
  • New Topic