Win a copy of 97 Things Every Java Programmer Should Know this week in the Java in General forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Jeanne Boyarsky
  • Junilu Lacar
  • Henry Wong
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Frits Walraven
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Piet Souris
  • salvin francis
  • fred rosenberger

Sharpen you pencil - page 547

 
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.
 
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 ]
 
Politics n. Poly "many" + ticks "blood sucking insects". Tiny ad:
ScroogeXHTML 9.0 - RTF to HTML5 and XHTML converter
https://coderanch.com/t/731949/ScroogeXHTML-RTF-HTML-XHTML-converter
    Bookmark Topic Watch Topic
  • New Topic