• 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
  • Tim Cooke
  • paul wheaton
  • Paul Clapham
  • Ron McLeod
Sheriffs:
  • Jeanne Boyarsky
  • Liutauras Vilda
Saloon Keepers:
  • Tim Holloway
  • Carey Brown
  • Roland Mueller
  • Piet Souris
Bartenders:

HFEJB Book page 171

 
Greenhorn
Posts: 25
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Point 5 C
Sidenote says "no, only for local".
I thought remove() exists for both local and remote component interfaces, not only for local ?
Regards,
Chris Lewold
 
Ranch Hand
Posts: 143
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
The answer means a different way. It means that for session beans Remote clients can use both the home and component interface's remove methods but local clients can use the remove() method only from the component interface coz there are no handles in local.
So in brief the answer says that point 5c shud say "only by local" instead of "only by remote"
 
Chris Lewold
Greenhorn
Posts: 25
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Then the answer should say "Both by remote and local clients", shouldnt it ?
 
Ranch Hand
Posts: 247
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Chris,
I agree with you, the question is poor worded.
It should be:
, so that correction "no, only for local" may apply.
It would then mean , which is a correct statement.
If the question stays in this state:

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


then to my sense, you're completely right, and the correction should be then
, as you suggested: "The remove() method in the component interface can be used both by remote and local clients "
Regards,
Cyril
PS: I feel any regret having spent 4 years of my life studying philosophy before computer science...sometimes, it's useful
[ January 15, 2004: Message edited by: cyril vidal ]
 
Ranch Hand
Posts: 277
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hey all:
If choice C. read as you suggest "The remove() method in the component interface can be used both by remote and local clients" then this would be a correct choice but C. has not been selected. Also, the side note would not make sense in that case.
This is how I think Kathy and Bert intended the choice C. to read. "Remote clients can only use the remove method in the component interface." This is incorrect because remote clients can use the remove method in the home interface as well, therfore C. would not be selected, which is the case. Also the side note would make sense because replacing remote with local you would get "Local clients can only use the remove method in the component interface." which is a correct statement.

Hope this helps.
[ January 15, 2004: Message edited by: Keith Rosenfield ]
 
Chris Lewold
Greenhorn
Posts: 25
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Keith .... No, I dont think the choice should read like this. I think the sidenote should be like this.
Lets start from the begin.....
-) I know choice C is NOT correct. Imho the question means "Which type of client (remote or local) can invoke remove(). Answer: Both can !
-) The side note says "Only for local". This is WRONG - because remove() can also be invoked from remote clients.
[ January 15, 2004: Message edited by: Chris Lewold ]
 
Keith Rosenfield
Ranch Hand
Posts: 277
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Chris:
The bottom line in that as things stand C. is incorrect, so it is correctly not selected, and so is the side note. As hard as we try we can not get in the minds of the authors to figure out what was really meant. I hope that Kathy or Bert can clear things up.
Meanwhile, I think we can agree on following 3 points about the remove method:
1) Both local and remote clients can call remove() on the component interface of session beans .
2) Only remote clients can call remove(Handle h) on the home interface of session beans.
3) The remove(Object key) method can only be called on the home interface of entity beans.
 
Chris Lewold
Greenhorn
Posts: 25
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Correct - all u say is right.
My whole thread was about the sidenote which really confuses me.
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic