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"
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 ]
SCJP 1.4, SCWCD, SCBCD, IBM XML, IBM Websphere 285, IBM Websphere 287
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 ]
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 ]
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.