Win a copy of Testing JavaScript Applications this week in the HTML Pages with CSS and JavaScript 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
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Carey Brown

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 ]
 
And inside of my fortune cookie was this tiny ad:
Thread Boost feature
https://coderanch.com/t/674455/Thread-Boost-feature
    Bookmark Topic Watch Topic
  • New Topic