• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

regarding exceptions

 
Ranch Hand
Posts: 172
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Which exception do we get if the client calls remove() on a bean thats already been removed?

A) No Such Object exception(for remote),
B) No Such Object Local exception(for local) or
C) EJB/Remote exception for local and remote clients respectively.

My answer is A/B depending on the client.
Could you explain me your answers?
 
Ranch Hand
Posts: 147
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Javainn,

your answer is correct for session beans, the reason is simply because it is specified Have a look at section 18.3.5 of the EJB specification.

Wei-ju
 
trivikram Kumar
Ranch Hand
Posts: 172
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Wei-ju Wu,

Thankyou for your answer.
Actually I was sure about the answer but had a doubt because HFEJB has given a different answer.
Anyway thankyou for clearing my doubt even after you clearing the exam.
[ July 20, 2005: Message edited by: S javainn ]
 
Ranch Hand
Posts: 250
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Which exception do we get if the client calls remove() on a bean thats already been removed?

A) No Such Object exception(for remote),
B) No Such Object Local exception(for local) or
C) EJB/Remote exception for local and remote clients respectively.



It is not guaranteed that the container will throw the specific exception. In the above question third option is correct because container may not thorw NoSuchObjectException or NoSuchObjectLocalException.

Do a search in the forum and you will find answer of this question .
 
Ranch Hand
Posts: 1683
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
This may help.
https://coderanch.com/t/160892/java-EJB-SCBCD/certification/mock-exam-HF-pg
 
Make yourself as serene as a flower, as a tree. And on wednesdays, as serene as this tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic