This week's book giveaway is in the HTML Pages with CSS and JavaScript forum.
We're giving away four copies of Testing JavaScript Applications and have Lucas da Costa on-line!
See this thread for details.
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

regarding exceptions

 
Ranch Hand
Posts: 172
  • Mark post as helpful
  • send pies
  • 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
  • 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
  • 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
  • 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
  • Quote
  • Report post to moderator
This may help.
https://coderanch.com/t/160892/java-EJB-SCBCD/certification/mock-exam-HF-pg
 
Consider Paul's rocket mass heater.
    Bookmark Topic Watch Topic
  • New Topic