aspose file tools*
The moose likes EJB Certification (SCBCD/OCPJBCD) and the fly likes EJBException and RemoteException Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » EJB Certification (SCBCD/OCPJBCD)
Bookmark "EJBException and RemoteException" Watch "EJBException and RemoteException" New topic
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: 385
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: 9383
    
    2

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, Certified Scrum Master
Did a rm -R / to find out that I lost my entire Linux installation!
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: EJBException and RemoteException