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

Q5 in page 171 in HFE

 
Ranch Hand
Posts: 55
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hello all,
i thought one of the answers for question 5 in page 171 in HFE would be C too but it's not. The question ask if the statement is true for session beans.


C. The remove() method in the component interface can be used only by remote clients.


As i understand, it could be Yes if the component interface is *remote" and no if the component is *local*. But the comment next to it says - no, only for local. What does it mean? is it that the remove method in the component interface as stated in the question can only be used by local client?
could you please clarify it?
thanks.
 
Cowgirl and Author
Posts: 1589
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Howdy -- the answer is correct, but I have no idea what the annotated comment means! Just ignore it. It probably should have said, "this would be true if we said HOME interface", because with a session bean, you can't use a remove() method on the home unless the interface is local. (Since the local home interface remove takes a primary key).
cheers,
Kathy
 
Ever since I found this suit I've felt strange new needs. And a tiny ad:
Devious Experiments for a Truly Passive Greenhouse!
https://www.kickstarter.com/projects/paulwheaton/greenhouse-1
    Bookmark Topic Watch Topic
  • New Topic