Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Quiz on remove

 
Roger Chung-Wee
Ranch Hand
Posts: 1683
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Here's my second quiz (and probably my last as my exam date is looming ).

The remote client of a bean invokes the remove method. Under what circumstances will the client receive a:

(a) javax.ejb.RemoveException
(b) java.rmi.RemoteException
(c) javax.ejb.EJBException
(d) java.rmi.NoSuchObjectException
 
Girija Siva
Ranch Hand
Posts: 41
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Roger
Good luck with your preparation and the exam

The remote client of a bean invokes the remove method. Under what circumstances will the client receive a:

(a) javax.ejb.RemoveException

the client gets this exception for stateful and entity when something goes wrong while calling remove or the bean provider throws this


(b) java.rmi.RemoteException

the remote client gets this when there is a system exception

(c) javax.ejb.EJBException

the local client gets this when there is a system exception

(d) java.rmi.NoSuchObjectException

the remove client still has the stub but the remote object is no more associated with it
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic