• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Sharpen you pencil - page 547

 
Keith Rosenfield
Ranch Hand
Posts: 277
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,
I don't think Kathy provided solutions to the Sharpen you pencil exercise on page 547. My solution is A , D , C , A. Is that correct? Did anyone get a different answer? If so, please explain.
Much appreciated.
 
bhargavi kakarala
Ranch Hand
Posts: 82
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi Keith
I think the answers r A,D,C,B
 
Keith Rosenfield
Ranch Hand
Posts: 277
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
IMO...the fourth one couldn't be B. RemoteException should never be thrown by a bean. Beans should throw EJBException and the container will in turn throw the appropriate exception to the client. RemoteExcepion to a remote client and EJBException to a local client.
 
bhargavi kakarala
Ranch Hand
Posts: 82
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi keith,
yes u r right.I checked it.
in that case," bean turns what was originally checked exception(from bean's perspective)to an unchecked exception by wrapping and rethrowing it as an EJBExcaption,which ultimately shows up as RemoteException on the remote client ".
so now all u'r answers r correct.
[ January 29, 2004: Message edited by: bhargavi kakarala ]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic