This week's book giveaway is in the Features new in Java 9 forum.
We're giving away four copies of Java 9 Revealed and have Kishori Sharan on-line!
See this thread for details.
Win a copy of Java 9 Revealed this week in the Features new in Java 9 forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Quiz on remove  RSS feed

 
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
Boost this thread!