aspose file tools
The moose likes EJB Certification (SCBCD/OCPJBCD) and the fly likes Ch-5 Q No.5 Coffee Cram Mock Exam Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Certification » EJB Certification (SCBCD/OCPJBCD)
Reply Bookmark "Ch-5 Q No.5 Coffee Cram Mock Exam" Watch "Ch-5 Q No.5 Coffee Cram Mock Exam" New topic
Author

Ch-5 Q No.5 Coffee Cram Mock Exam

Puneet Vashisht
Ranch Hand

Joined: Jul 30, 2005
Posts: 44
Which are ways in which a client can get a reference to an existing entity object's remote component interface?
A. Call ejbCreate()
B. Obtain the reference from the handle.
c. Call a method on the entity object's primary key.
D. Recieve the reference as a parameter in a method call.
E. Use a finder method defined in the remote home interface.


I think i'vent understood option D well. How can the client even recieve a reference as a parameter, it can only get it as a return value. My point is that a bean would never call method on a client, so how could the reference be received as a parameter.

Same is with Q No 3.

Thanks,
Puneet
Greg Charles
Bartender

Joined: Oct 01, 2001
Posts: 2535
    
  10

No, you're right. The bean would never call a method in the client. However, something else might. That is, another client gets a reference to the bean, than calls a method on your client that passes that reference as a parameter. I'm not sure why you'd want to do that, but that didn't stop my former coworkers from doing it continously.
B.Sathish
Ranch Hand

Joined: Aug 18, 2005
Posts: 372
Parameter actually means return type here. What they mean is you can call a method on a bean, that method can look up and return the component interface reference of another bean which you can receive as the return value of that call
 
I agree. Here's the link: jrebel
 
subject: Ch-5 Q No.5 Coffee Cram Mock Exam
 
Similar Threads
HF: Page291 Q.3
Question from a Mock test
Question from ejbCertificate
HF P288 Q3
Coffee Cram questions 3 and 5 in entity bean intro