• Post Reply Bookmark Topic Watch Topic
  • New Topic

EJBException and RemoteException  RSS feed

 
Ranch Hand
Posts: 185
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 ]
 
Ranch Hand
Posts: 392
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
EJBException
 
Ranch Hand
Posts: 76
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Definitely EJBException as RemoteException is taken care of by the container [ as specified in MZ's notes ]
 
Ranch Hand
Posts: 329
Java Linux Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I tested it yesterday on Glassfish and I can confirm that the client receives an EJBException.
 
Ranch Hand
Posts: 10128
3
Eclipse IDE Mac PPC Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

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?
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!