| Author |
EJBException and RemoteException
|
nitin pai
Ranch Hand
Joined: May 30, 2006
Posts: 185
|
|
The specs state that the client of an EJB will receive EJBException when the bean throws system exceptions and will recieve RemoteException if the business interface extends java.rmi.Remote. Which exception will be received by the bean whose business interface has been defined only with @Remote annotation? [ July 08, 2008: Message edited by: nitin pai ]
|
|
 |
Nikhil Jain
Ranch Hand
Joined: May 15, 2005
Posts: 383
|
|
|
EJBException
|
SCJP 1.4, SCWCD 1.4, SCBCD 1.5
|
 |
Aditya Vasudeva
Ranch Hand
Joined: May 27, 2008
Posts: 76
|
|
|
Definitely EJBException as RemoteException is taken care of by the container [ as specified in MZ's notes ]
|
 |
Sergio Tridente
Ranch Hand
Joined: Mar 22, 2007
Posts: 329
|
|
|
I tested it yesterday on Glassfish and I can confirm that the client receives an EJBException.
|
SCJP 1.4 (88%) - SCJP 5.0 Upgrade (93%) - SCWCD 1.4 (97%) - SCBCD 5.0 (98%)
|
 |
Joe Harry
Ranch Hand
Joined: Sep 26, 2006
Posts: 8795
|
|
Originally posted by Aditya Vasudeva: Definitely EJBException as RemoteException is taken care of by the container [ as specified in MZ's notes ]
Where in MZ's notes is that specified?
|
SCJP 1.4, SCWCD 1.4 - Hints for you, SCBCD Hints - Demnachst, SCDJWS - Auch Demnachst
Did a rm -R / to find out that I lost my entire Linux installation!
|
 |
 |
|
|
subject: EJBException and RemoteException
|
|
|