Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Head First EJB - Chapter 3, Coffee Cram, Q 5 Problem

 
Susanta Chatterjee
Ranch Hand
Posts: 102
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Everybody,

After a lot of trying, I still have confusion about "Head First EJB - Chapter 3, Coffee Cram, Question 5".

Can anyone please explain me - why Option C is not correct?

I am aware of the previous two posts:

Topic: Head First Java - Q3 & Q5 on Page 170, 171

and

Topic: page 168 question 3

but those two does not explain the Question 5.

My problem is I cannot understand, why remove() metthod on component interface (EJBObject or EJBLocalObject) cannot be used by remote client of Session Bean.
 
Susanta Chatterjee
Ranch Hand
Posts: 102
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I got it now. The trick is in the word "only". The remove() method can be invoked by local client as well, and that is why the statement is false. But the explanation needs to be modified to "no, local client can call too".
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic